TT#101150 use rtpe_now for uptime

Change-Id: Idd7e56058c9f27ca05b242bed52fe1f623bc9cbd
pull/1346/head
Richard Fuchs 4 years ago
parent 2130e2f62b
commit e04df3b961

@ -488,7 +488,7 @@ GQueue *statistics_gather_metrics(void) {
HEADER("totalstatistics", "Total statistics (does not include current running sessions):");
HEADER("{", "");
METRIC("uptime", "Uptime of rtpengine", "%llu", "%llu seconds", (unsigned long long) time(NULL)-rtpe_totalstats.started);
METRIC("uptime", "Uptime of rtpengine", "%llu", "%llu seconds", (long long) rtpe_now.tv_sec-rtpe_totalstats.started);
PROM("uptime_seconds", "gauge");
METRIC("managedsessions", "Total managed sessions", UINT64F, UINT64F, num_sessions);

Loading…
Cancel
Save