* citadel.c: display idle times in wholist up to 999 days
authorMichael Hampton <io_error@uncensored.citadel.org>
Sun, 22 Jun 2003 20:49:32 +0000 (20:49 +0000)
committerMichael Hampton <io_error@uncensored.citadel.org>
Sun, 22 Jun 2003 20:49:32 +0000 (20:49 +0000)
citadel/ChangeLog
citadel/citadel.c

index bba1f22b5a5583802324edd57d3cce75ac0b21a5..e47f80ffcdad690b87db4c682f85bc6862b3532a 100644 (file)
@@ -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 <bryant@cs.usm.maine.edu>
 
 Fri Jul 10 1998 Art Cancro <ajc@uncensored.citadel.org>
        * Initial CVS import
+
index 8932d9bbedf84f9d2b7658ee09245305b2a7af23..639cd23ca278e44aa5d52c828a66d3e51eb30b43 100644 (file)
@@ -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",