cnping

Minimal Graphical Ping Tool
git clone https://git.sinitax.com/cnlohr/cnping
Log | Files | Refs | Submodules | README | LICENSE | sfeed.txt

commit f62db84a5dbc049c0b19c7eba72bb3f8b76cb3f7
parent b1468249f48a9379717c8f52048ea793c9e28feb
Author: David Auer <dreua@posteo.de>
Date:   Thu, 11 May 2023 14:41:12 +0200

Show historical loss as lost/total

Showing lost/received appeard to be confusing. This improves UX by displaying what users are expecting based on common usage of the format x/y.

Closes: https://github.com/cntools/cnping/issues/104

Diffstat:
Mcnping.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cnping.c b/cnping.c @@ -527,7 +527,7 @@ void DrawFrame( void ) "Std :%6.2f ms Historical loss: %lu/%lu %5.3f%%\n" #endif "Loss:%6.1f %%", last, pinghost, mintime, maxtime, globmaxtime*1000, avg, globinterval*1000.0, stddev, - globallost, globalrx, globallost*100.0f/(globalrx+globallost), loss ); + globallost, globalrx+globallost, globallost*100.0f/(globalrx+globallost), loss ); DrawMainText( stbuf ); OGUSleep( 1000 );