summaryrefslogtreecommitdiff
path: root/cmd_botu.c
diff options
context:
space:
mode:
authorFreeArtMan <dos21h@gmail.com>2017-05-08 16:52:21 +0100
committerFreeArtMan <dos21h@gmail.com>2017-05-08 16:52:21 +0100
commit6a377350d63fc2dd470e9bd25008e8e827c011f2 (patch)
treed1668b7358aa3e94c6dcfeeb9eb5c3af5f7d5a6a /cmd_botu.c
parent5025c0c8288a336f7986153574bce73df4bb3147 (diff)
downloadagni-6a377350d63fc2dd470e9bd25008e8e827c011f2.tar.gz
agni-6a377350d63fc2dd470e9bd25008e8e827c011f2.zip
Muli server support. Some small fixes to commands
Diffstat (limited to 'cmd_botu.c')
-rw-r--r--cmd_botu.c6
1 files changed, 5 insertions, 1 deletions
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;