Index: src/platform/metrics/metrics_daemon_main.cc |
diff --git a/src/platform/metrics/metrics_daemon_main.cc b/src/platform/metrics/metrics_daemon_main.cc |
index 7ace3334d6943d988001ae9dd0e1e5a17c41f519..f3f071425b71582302c246333b0ac760f2d83e01 100644 |
--- a/src/platform/metrics/metrics_daemon_main.cc |
+++ b/src/platform/metrics/metrics_daemon_main.cc |
@@ -10,7 +10,10 @@ |
DEFINE_bool(daemon, true, "run as daemon (use -nodaemon for debugging)"); |
int main(int argc, char** argv) { |
- MetricsDaemon::MetricsDaemon d; |
google::ParseCommandLineFlags(&argc, &argv, true); |
- d.Run(FLAGS_daemon); |
+ MetricsLibrary metrics_lib; |
+ metrics_lib.Init(); |
+ MetricsDaemon daemon; |
+ daemon.Init(false, &metrics_lib); |
+ daemon.Run(FLAGS_daemon); |
} |