summaryrefslogtreecommitdiff
path: root/cmd_uptime.c
diff options
context:
space:
mode:
authorFreeArtMan <dos21h@gmail.com>2017-05-07 18:08:10 +0100
committerFreeArtMan <dos21h@gmail.com>2017-05-07 18:08:10 +0100
commitadf40686a636bfe95357c3affe011a2514bfbf52 (patch)
treedc0a0e15fc2c0c883c3df7cd9ca7020d9320901a /cmd_uptime.c
parent910c1942b21bd88fa9b2091a0f7322f6b2c96df7 (diff)
downloadagni-adf40686a636bfe95357c3affe011a2514bfbf52.tar.gz
agni-adf40686a636bfe95357c3affe011a2514bfbf52.zip
Updated command that they are more compatible with developerslv chan bots
Diffstat (limited to 'cmd_uptime.c')
-rw-r--r--cmd_uptime.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd_uptime.c b/cmd_uptime.c
index 285aec1..6a9c963 100644
--- a/cmd_uptime.c
+++ b/cmd_uptime.c
@@ -26,7 +26,7 @@ void *cmd_uptime(void *data)
i2 = d2;
printf("Days %d Hours %d Minutes %d\n",i1/(3600*24),i1/(3600)%24, (i1/60)%60);
- snprintf(buf, buf_size,"Days %d Hours %d Minutes %d\n",i1/(3600*24),i1/(3600)%24, (i1/60)%60);
+ snprintf(buf, buf_size,"%dd %dh %dm\n",i1/(3600*24),i1/(3600)%24, (i1/60)%60);
ret = alloc_new_str(buf);