Fix printf format in clock code.

This commit is contained in:
Jonathan Moore Liles 2008-04-22 23:39:08 -05:00
parent fd9667ea25
commit 73282bbf4d
1 changed files with 1 additions and 1 deletions

View File

@ -62,7 +62,7 @@ public:
int M = S / 60; S -= M * 60; int M = S / 60; S -= M * 60;
int H = M / 60; M -= H * 60; int H = M / 60; M -= H * 60;
snprintf( dst, n, "%02d:%02d:%02.1f", H, M, S ); snprintf( dst, n, "%02d:%02d:%04.1f", H, M, S );
} }