[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [php-weathermap] Wrong scale value being used



Dunc wrote:
Hi all,

I've got a weird one which I hope someone can help me debug. I've
attached a file with the relevant debug output.

I'm monitoring some temperatures, and most are working just fine, but on
one link the value read, and the value used to generate the colour are
out by a factor of 10^6
You didn't include the most relevant debugging output - the config - but the default link bandwidth is 100M. My guess is that you haven't set it differently, and that 22.5/100000000 gets you a utilisation of 2.2e-5%, and therefore black.

Scales are based on percentages of maximum bandwidth, unless you use the 'absolute' option introduced in 0.97, which has a few limitations regarding things like legend formatting.
Copyright 1994-2005, by Howard Jones. howie@thingy.com