[PATCH 2/3] stats: change values format from %f to %g

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Allow printf to choose format based on order of numbers.

Signed-off-by: Frediano Ziglio <fziglio@xxxxxxxxxx>
---
 server/display-channel.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/server/display-channel.c b/server/display-channel.c
index 40c76b3..4e5e8bb 100644
--- a/server/display-channel.c
+++ b/server/display-channel.c
@@ -46,7 +46,7 @@ void display_channel_compress_stats_reset(DisplayChannel *display)
     stat_reset(&display->lz4_stat);
 }
 
-#define STAT_FMT "\t%8d\t%13.2f\t%12.2f\t%12.2f"
+#define STAT_FMT "\t%8d\t%13.2g\t%12.2g\t%12.2g"
 
 void display_channel_compress_stats_print(const DisplayChannel *display_channel)
 {
-- 
2.7.4

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]