Fix printf formatting for system info;
authorRinat Dobrokhotov <rdobrokhotov@dev.rtsoft.ru>
Tue, 28 Aug 2018 14:22:16 +0000 (17:22 +0300)
committerAleksei Vereshchagin <avereschagin@dev.rtsoft.ru>
Tue, 28 Aug 2018 22:24:18 +0000 (01:24 +0300)
profctl.c

index 83da8b9b059bb63b5c71b0d31bb4d6644866fb6e..403a6589ec2bb393ebedc0a35aa36630330af7c2 100644 (file)
--- a/profctl.c
+++ b/profctl.c
@@ -291,7 +291,7 @@ static void *outstat(void *arg)
                        : fstat.f_bavail / (1024 / fstat.f_bsize);
 
                fprintf(sfile,
-                       "%ld.%d %d" " %s %s %s" " %s %s" " %s %s %ld %ld\n",
+                       "%ld.%03d %d" " %s %s %s" " %s %s" " %s %s %ld %ld\n",
                        t, millisec, ncpu,
                        stats[1], stats[3], stats[4], /* user system idle */
                        pstats[14 - 1], pstats[15 - 1], /* puser psystem */