From: Michael Hampton Date: Sun, 22 Jun 2003 20:49:32 +0000 (+0000) Subject: * citadel.c: display idle times in wholist up to 999 days X-Git-Tag: v7.86~5845 X-Git-Url: https://code.citadel.org/?a=commitdiff_plain;h=7233c50f91ca7a4b9c1d0efee17b027d7ef29830;p=citadel.git * citadel.c: display idle times in wholist up to 999 days --- diff --git a/citadel/ChangeLog b/citadel/ChangeLog index bba1f22b5..e47f80ffc 100644 --- a/citadel/ChangeLog +++ b/citadel/ChangeLog @@ -1,4 +1,7 @@ $Log$ + Revision 607.5 2003/06/22 20:49:31 error + * citadel.c: display idle times in wholist up to 999 days + Revision 607.4 2003/06/19 04:12:30 ajc * domain.c: use qsort() to sort MX records by preference. Why have a custom function when the operating system provides one for free? @@ -4777,3 +4780,4 @@ Sat Jul 11 00:20:48 EDT 1998 Nathan Bryant Fri Jul 10 1998 Art Cancro * Initial CVS import + diff --git a/citadel/citadel.c b/citadel/citadel.c index 8932d9bbe..639cd23ca 100644 --- a/citadel/citadel.c +++ b/citadel/citadel.c @@ -929,9 +929,13 @@ void who_is_online(CtdlIPC *ipc, int longlist) roomname[20] = 0; pprintf("%-20s ", roomname); if (idletime > rc_idle_threshold) { - /* over 10 days, must be gone fishing */ - if (idlehours > 239) { + /* over 1000d, must be gone fishing */ + if (idlehours > 23999) { pprintf("fish"); + /* over 10 days */ + } else if (idlehours > 239) { + pprintf("%3ldd", + idlehours / 24); /* over 10 hours */ } else if (idlehours > 9) { pprintf("%1ldd%02ld",