mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-11-03 19:54:35 +00:00
bfdd: Fix timer print-out function
The timer2str function thought 24 minutes was an hour and had a couple of other issues that needed to be corrected. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
This commit is contained in:
parent
e6cc3dc98b
commit
23586b0552
@ -770,10 +770,10 @@ void integer2timestr(uint64_t time, char *buf, size_t buflen)
|
||||
int rv;
|
||||
|
||||
#define MINUTES (60)
|
||||
#define HOURS (24 * MINUTES)
|
||||
#define DAYS (30 * HOURS)
|
||||
#define MONTHS (12 * DAYS)
|
||||
#define YEARS (MONTHS)
|
||||
#define HOURS (60 * MINUTES)
|
||||
#define DAYS (24 * HOURS)
|
||||
#define MONTHS (30 * DAYS)
|
||||
#define YEARS (12 * MONTHS)
|
||||
if (time >= YEARS) {
|
||||
year = time / YEARS;
|
||||
time -= year * YEARS;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user