projects
/
paraslash.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0b59e8c
)
server: Include git version in output of com_si().
author
Andre Noll
<maan@systemlinux.org>
Tue, 15 Mar 2011 20:07:42 +0000
(21:07 +0100)
committer
Andre Noll
<maan@systemlinux.org>
Tue, 15 Mar 2011 20:07:42 +0000
(21:07 +0100)
It is often useful to be able to find out which version of para_server
is currently running.
command.c
patch
|
blob
|
history
diff --git
a/command.c
b/command.c
index
f9ef6cd
..
5217f9b
100644
(file)
--- a/
command.c
+++ b/
command.c
@@
-255,7
+255,8
@@
int com_si(struct rc4_context *rc4c, int argc, __a_unused char * const * argv)
free(info);
}
ut = uptime_str();
- ret = rc4_send_va_buffer(rc4c, "up: %s\nplayed: %u\n"
+ ret = rc4_send_va_buffer(rc4c, "version: " GIT_VERSION "\n"
+ "up: %s\nplayed: %u\n"
"server_pid: %d\n"
"afs_pid: %d\n"
"connections (active/accepted/total): %u/%u/%u\n"