#24 division with 0 affects graphs

open
None
9
2005-02-15
2005-02-15
alex
No

YMax can reach situation in which it can be 0; then in
function GraphData it is used for division in
converting the bytes/sec to y coords.
This kills graphing (and generating index for whatever
is graphed already).

For the fast fix, I added
if ((YMax==0)) {
syslog(LOG_ERR, "div with %d", YMax );
YMax += 1;};
just above "// Convert the bytes/sec to y coords" line.
Waiting for CVS update.
Best regards,

Alexandru Matei

Discussion

  • alex

    alex - 2005-02-15
    • priority: 5 --> 9
     
  • alex

    alex - 2005-02-15
    • assigned_to: nobody --> henriksson
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks