Skip to content

Commit

Permalink
Show historical loss as lost/total
Browse files Browse the repository at this point in the history
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: #104
  • Loading branch information
dreua committed May 11, 2023
1 parent b146824 commit f62db84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cnping.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down

0 comments on commit f62db84

Please sign in to comment.