mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Since top displays the uptime including seconds, there is no need to add 30
onto it, which may have been used for rounding purposes in other utilities. PR: bin/147934 Submitted by: Janne Snabb <snabb at epipe.com> Approved by: rrs (mentor) MFC after: 2 weeks
This commit is contained in:
parent
7ac7ad63d8
commit
2ab8e45eb8
1 changed files with 0 additions and 1 deletions
|
|
@ -1273,7 +1273,6 @@ time_t *tod;
|
|||
|
||||
if (bt->tv_sec != -1) {
|
||||
uptime = *tod - bt->tv_sec;
|
||||
uptime += 30;
|
||||
days = uptime / 86400;
|
||||
uptime %= 86400;
|
||||
hrs = uptime / 3600;
|
||||
|
|
|
|||
Loading…
Reference in a new issue