From 6a377350d63fc2dd470e9bd25008e8e827c011f2 Mon Sep 17 00:00:00 2001 From: FreeArtMan Date: Mon, 8 May 2017 16:52:21 +0100 Subject: Muli server support. Some small fixes to commands --- cmd_botu.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'cmd_botu.c') diff --git a/cmd_botu.c b/cmd_botu.c index 312509d..f284ba9 100644 --- a/cmd_botu.c +++ b/cmd_botu.c @@ -35,7 +35,11 @@ void *cmd_botu(void *data) proc_sec = start.tv_sec - file_stat.st_ctim.tv_sec; - snprintf(buf, buf_size, "%llusec\n", proc_sec); + snprintf(buf, buf_size, "%llud %lluh %llum %llus\n", + (proc_sec/(3600*24)), + (proc_sec/(3600))%24, + (proc_sec/60)%60, + proc_sec%60); ret = alloc_new_str(buf); return ret; -- cgit v1.2.3