]> granicus.if.org Git - vnstat/commitdiff
reduce number of decimals in the warning output
authorTeemu Toivola <git@humdi.net>
Sun, 12 May 2019 15:16:15 +0000 (18:16 +0300)
committerTeemu Toivola <git@humdi.net>
Sun, 12 May 2019 15:16:15 +0000 (18:16 +0300)
src/daemon.c

index 3f6830aa7f21d41038c6e916508b70d699530c6c..d02de15ff6d6edb0d6fef2119cf202c5538f62f0 100644 (file)
@@ -681,7 +681,7 @@ void flushcachetodisk(DSTATE *s)
        }
        used_secs = timeused(__func__, 0);
        if (used_secs > SLOWDBFLUSHWARNLIMIT) {
-               snprintf(errorstring, 1024, "Writing cached data to database took %.2f seconds.", used_secs);
+               snprintf(errorstring, 1024, "Writing cached data to database took %.1f seconds.", used_secs);
                printe(PT_Warning);
        }
 }