Include the server's startup time as one of the output parameters of the TIME command
authorArt Cancro <ajc@uncensored.citadel.org>
Tue, 24 Jan 2012 21:44:38 +0000 (16:44 -0500)
committerArt Cancro <ajc@uncensored.citadel.org>
Tue, 24 Jan 2012 21:44:38 +0000 (16:44 -0500)
citadel/citserver.c

index 2cca2f8db673de07b15a5e1c9fafffb46c632b6e..782f6a99b0c4acf112ef448c0afe25d2400f65d7 100644 (file)
@@ -346,9 +346,9 @@ void cmd_time(char *argbuf)
    
    /* timezone and daylight global variables are not portable. */
 #ifdef HAVE_STRUCT_TM_TM_GMTOFF
-   cprintf("%d %ld|%ld|%d\n", CIT_OK, (long)tv, tmp.tm_gmtoff, tmp.tm_isdst);
+   cprintf("%d %ld|%ld|%d|%ld\n", CIT_OK, (long)tv, tmp.tm_gmtoff, tmp.tm_isdst, server_startup_time);
 #else
-   cprintf("%d %ld|%ld|%d\n", CIT_OK, (long)tv, timezone, tmp.tm_isdst);
+   cprintf("%d %ld|%ld|%d|%ld\n", CIT_OK, (long)tv, timezone, tmp.tm_isdst, server_startup_time);
 #endif
 }