cnping

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

commit c53d894ef2dd6bf3fc90081bca945a405a6b6fe1
parent 15ae63d33add1e9584503e8baa06a2d670359df1
Author: cnlohr <charles@cnlohr.com>
Date:   Wed, 11 Jul 2018 10:54:41 -0400

actually prevent crash if in process of clearing out histogram.

Diffstat:
Mcnping.c | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/cnping.c b/cnping.c @@ -252,6 +252,8 @@ void DrawFrameHistogram() int slotsmax = maxpingslot / skips + 1; int slotsmin = minpingslot / skips; slots = slotsmax - slotsmin; + if( slots <= 0 ) goto nodata; + uint64_t samples[slots+2]; int ssmsMIN[slots+2]; int ssmsMAX[slots+2];