projects
/
citadel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
33a166e
)
Include the server's startup time as one of the output parameters of the TIME command
author
Art Cancro
<ajc@uncensored.citadel.org>
Tue, 24 Jan 2012 21:44:38 +0000
(16:44 -0500)
committer
Art Cancro
<ajc@uncensored.citadel.org>
Tue, 24 Jan 2012 21:44:38 +0000
(16:44 -0500)
citadel/citserver.c
patch
|
blob
|
history
diff --git
a/citadel/citserver.c
b/citadel/citserver.c
index 2cca2f8db673de07b15a5e1c9fafffb46c632b6e..782f6a99b0c4acf112ef448c0afe25d2400f65d7 100644
(file)
--- a/
citadel/citserver.c
+++ b/
citadel/citserver.c
@@
-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
}