summaryrefslogtreecommitdiff
path: root/cmd_botu.c
diff options
context:
space:
mode:
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;