commit c36b49baf02be0d4ad16b41f7dc43de12ca75686
parent bb4a40a1eb2f0f22d2825d6db8ed44e4c5238e03
Author: cnlohr <charles@cnlohr.com>
Date: Wed, 11 Jul 2018 10:39:56 -0400
Unify Windows and Linux percentages.
Diffstat:
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/cnping.c b/cnping.c
@@ -349,9 +349,9 @@ void DrawFrameHistogram()
}
char stt[1024];
#ifdef WIN32
- snprintf( stt, 1024, "Host: %s\nHistorical max %9.2fms\nBiggest interval%9.2fms\nHistorical packet loss %llu/%llu = %6.2f%%",
+ snprintf( stt, 1024, "Host: %s\nHistorical max %9.2fms\nBiggest interval%9.2fms\nHistorical packet loss %I64u/%I64u = %6.3f%%",
#else
- snprintf( stt, 1024, "Host: %s\nHistorical max %9.2fms\nBiggest interval%9.2fms\nHistorical packet loss %lu/%lu = %6.2f%%",
+ snprintf( stt, 1024, "Host: %s\nHistorical max %9.2fms\nBiggest interval%9.2fms\nHistorical packet loss %lu/%lu = %6.3f%%",
#endif
pinghost, globmaxtime*1000.0, globinterval*1000.0, globallost, globalrx, globallost*100.0/(globalrx+globallost) );
if( !in_frame_mode )
@@ -468,7 +468,7 @@ void DrawFrame( void )
"Max :%6.2f ms Historical max: %5.2f ms\n"
"Avg :%6.2f ms Biggest interval: %5.2f ms\n"
#ifdef WIN32
- "Std :%6.2f ms Historical loss: %I64u/%I64u %5.2f%%\n"
+ "Std :%6.2f ms Historical loss: %I64u/%I64u %5.df%%\n"
#else
"Std :%6.2f ms Historical loss: %lu/%lu %5.3f%%\n"
#endif
diff --git a/cnping.exe b/cnping.exe
Binary files differ.