From ab273892c54e29087d2a6b0d52de8081be1b905f Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Tue, 15 Mar 2011 21:07:42 +0100 Subject: [PATCH] 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. --- command.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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" -- 2.39.5