proxy: reschedule printStatsJob

This commit is contained in:
Sébastien Blin committed 2018-06-06 12:08:31 -04:00
1 parent 0c61a605ad
commit aef8aa545b
1 file changed
+1
+1
View File
@@ -138,6 +138,7 @@ DhtProxyServer::DhtProxyServer(std::shared_ptr<DhtRunner> dht, in_port_t port ,
if (stopListeners) return;
if (service_->is_up())
std::cout << getStats().toString() << std::endl;
scheduler_.edit(printStatsJob_, scheduler_.time() + PRINT_STATS_PERIOD);
// Refresh stats cache
auto newInfo = dht_->getNodeInfo();
{