mirror of
https://github.com/savoirfairelinux/opendht.git
synced 2026-11-08 04:21:51 +00:00
proxy: reschedule printStatsJob
This commit is contained in:
1 file changed
+1
@@ -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();
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user