commit | d37e26eaa61692f0217ddec23f63b22fcc55b7f9 | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Sat May 08 07:40:52 2021 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Sat May 08 10:52:12 2021 +0200 |
tree | e8f56efab9ed0337e7043214ea5f3c9d86b2969d | |
parent | 27456202409820713a6aca31b6df259b1737cf56 [diff] |
MINOR: stats: use tv_remain() to precisely compute the uptime We'll have to support reporting sub-second uptimes, so let's use the appropriate function which will automatically adjust the tv_usec field. In addition to this, it will also report a more accurate uptime thanks to considering the sub-second part in the result.