Index: metrics_daemon_main.cc |
diff --git a/metrics_daemon_main.cc b/metrics_daemon_main.cc |
index f3f071425b71582302c246333b0ac760f2d83e01..899256cffccbd6948d2699b4b12ebbfbff5951fc 100644 |
--- a/metrics_daemon_main.cc |
+++ b/metrics_daemon_main.cc |
@@ -9,11 +9,14 @@ |
DEFINE_bool(daemon, true, "run as daemon (use -nodaemon for debugging)"); |
+// Path to disk stats. This may be system dependent. |
+const char kMetricsMainDiskStatsPath[] = "/sys/class/block/sda/stat"; |
+ |
int main(int argc, char** argv) { |
google::ParseCommandLineFlags(&argc, &argv, true); |
MetricsLibrary metrics_lib; |
metrics_lib.Init(); |
MetricsDaemon daemon; |
- daemon.Init(false, &metrics_lib); |
+ daemon.Init(false, &metrics_lib, kMetricsMainDiskStatsPath); |
daemon.Run(FLAGS_daemon); |
} |