Skip to content

Commit dd5cb78

Browse files
Merge pull request #15 from ondras12345/uptime-zeros
Print leading zeros in uptime func
2 parents e813c99 + 9bf9810 commit dd5cb78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Commander-API-Commands.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ void commander_uptime_func( char *args, Stream *response ){
7373
minute = second / 60;
7474
second %= 60;
7575

76-
sprintf( buff, "%d days, %d:%d:%lu", day, hour, minute, second );
76+
sprintf( buff, "%d days, %d:%02d:%02lu", day, hour, minute, second );
7777

7878
response -> print( buff );
7979

0 commit comments

Comments
 (0)