From: Andre Noll Date: Tue, 15 Mar 2011 20:07:42 +0000 (+0100) Subject: server: Include git version in output of com_si(). X-Git-Tag: v0.4.6~16 X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=commitdiff_plain;h=ab273892c54e29087d2a6b0d52de8081be1b905f server: Include git version in output of com_si(). It is often useful to be able to find out which version of para_server is currently running. --- diff --git a/command.c b/command.c index f9ef6cd7..5217f9b4 100644 --- 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"