diff options
Diffstat (limited to 'cmd_botu.c')
-rw-r--r-- | cmd_botu.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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; |