projects
/
citadel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Include the server's startup time as one of the output parameters of the TIME command
[citadel.git]
/
citadel
/
citserver.c
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
/* 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
#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
}
#endif
}