diff options
author | FreeArtMan <dos21h@gmail.com> | 2017-05-08 16:52:21 +0100 |
---|---|---|
committer | FreeArtMan <dos21h@gmail.com> | 2017-05-08 16:52:21 +0100 |
commit | 6a377350d63fc2dd470e9bd25008e8e827c011f2 (patch) | |
tree | d1668b7358aa3e94c6dcfeeb9eb5c3af5f7d5a6a /cmd_botu.c | |
parent | 5025c0c8288a336f7986153574bce73df4bb3147 (diff) | |
download | agni-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.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; |