Hi all,
@Bill I wonder whether you have any ideas how to fix a bug I have just
encountered?
I have bonded two 10 gigabit network interfaces together, which gives
me a connection speed of approx two gigabytes per second. Trying to
display this in GKrellM causes some unusual behaviour:
* The $t and $r labels happily show values up to around "1.7 G" but
then they randomly change to be the letter "a". I am guessing this
might be a problem related to integer size, as around 2 billion is
where 32-bit signed integers wrap around to negatives.
* I have set the 'resolution per grid' to be the maximum 500,000,000
with four grids, so that each grid line represents a quarter of the
available throughput. Given that this is the maximum resolution per
grid, I wonder whether it might need increasing for the future.
Anyone lucky enough to have a 40 Gb or 100 Gb interface won't be
able to fully use GKrellM otherwise :)
* As soon as the 'resolution per grid' hits 500M, there are a dozen
grid lines showing instead of only the four I have set. I am
wondering whether 500M * 4 = 2 billion, which is going into a signed
32-bit integer and coming out as a negative number again. Maybe
these calculations have to become unsigned 64-bit values?
What do you think?
Cheers,
Adam.
|