Skip to content

Commit

Permalink
Fix format
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelortmann committed Aug 21, 2024
1 parent d1143d9 commit dcf6e04
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/mod/irc.mod/cmdsirc.c
Original file line number Diff line number Diff line change
Expand Up @@ -849,11 +849,11 @@ static void cmd_channel(struct userrec *u, int idx, char *par)
} else {
/* Determine idle time */
if (now - (m->last) > 86400)
snprintf(s, sizeof s, "%2" PRId64 "d", ((int64_t) (now - m->last)) / 86400);
snprintf(s, sizeof s, "%" PRId64 "d", ((int64_t) (now - m->last)) / 86400);
else if (now - (m->last) > 3600)
snprintf(s, sizeof s, "%2" PRId64 "h", ((int64_t) (now - m->last)) / 3600);
snprintf(s, sizeof s, "%" PRId64 "h", ((int64_t) (now - m->last)) / 3600);
else if (now - (m->last) > 180)
snprintf(s, sizeof s, "%2" PRId64 "m", ((int64_t) (now - m->last)) / 60);
snprintf(s, sizeof s, "%" PRId64 "m", ((int64_t) (now - m->last)) / 60);
else
strlcpy(s, "", sizeof s);
if (chan_ircaway(m)) {
Expand Down

0 comments on commit dcf6e04

Please sign in to comment.