Skip to content

Commit

Permalink
clients/upsmon.c: fix debug print format for sleep during loop-end [n…
Browse files Browse the repository at this point in the history
…etworkupstools#1070]

Signed-off-by: Jim Klimov <[email protected]>
  • Loading branch information
jimklimov committed Aug 22, 2024
1 parent e3a944b commit b19d2af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clients/upsmon.c
Original file line number Diff line number Diff line change
Expand Up @@ -3407,7 +3407,7 @@ int main(int argc, char *argv[])
time(&now);
dt = difftime(now, start);
upsdebugx(7, "start=%" PRIiMAX " now=%" PRIiMAX " dt=%g sleepval=%u sleep_inhibitor_status=%d",
start, now, dt, sleepval, sleep_inhibitor_status);
(intmax_t)start, (intmax_t)now, dt, sleepval, sleep_inhibitor_status);
if (dt > (sleepval + 5) || difftime(now, prev) > 5) {
upsdebugx(2, "It seems we have slept without warning or the system clock was changed");
if (sleep_inhibitor_status < 0)
Expand Down

0 comments on commit b19d2af

Please sign in to comment.