Browse Source

TT#101150 use rtpe_now for uptime

Change-Id: Idd7e56058c9f27ca05b242bed52fe1f623bc9cbd
pull/1346/head
Richard Fuchs 4 years ago
parent
commit
e04df3b961
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      daemon/statistics.c

+ 1
- 1
daemon/statistics.c View File

@ -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