PDA

View Full Version : Graphing bug in 1.1a3?


obstler
16-12-2004, 11:58
update:

Even worse graphing bug, in addition to the one below:

The graphs don't display anything when showing 1 hour (default). So any graph that I select (either a user graph, or even the graph links from the latest values) show an empty graph without any lines. As soon as I select 2 hours or more, the graph works fine again, but the default 1 hour graphs just remain empty.


Seems like there's a bug when moving graphs in 1.1a3. I go to graphs, select a graph and it displays the last hour. Now when I click on the "Move -1h" link, it should display 1 hour from 2 hours in the past, but what it actually does, is move 150 days! Even the title in the graph displays:

1h history 150d in the past

Clicking on -24h actually moves one 3600 days or 10 years into the past, so it's not just the move 1h, but any moves seem to get multiplied by a lot.

regards, tom.

Alexei
16-12-2004, 18:00
Sorry for the problem.

Please, comment this line in classes.inc.php:

#if($this->clock[$item][$i]-$this->clock[$item][$j]<8*($this->to_time-$this->from_time)/900)

The logic is obviously not correct here, however I'm not sure how to fix it yet.

obstler
20-12-2004, 11:33
thanks,

commenting that line fixes the "no data displayed for 1 hour graphs".

However it does (of course) not affect the bug involving moving the display, where an offset of 1 hour actually creates an offset of 150 days.

regards, tom.

Alexei
20-12-2004, 12:03
However it does (of course) not affect the bug involving moving the display, where an offset of 1 hour actually creates an offset of 150 days. In file charts.php:

Uncomment two occurencies of:

// $a already defined
$a=array("1h"=>1,"2h"=>2,"4h"=>4,"8h"=>8,"12h"=>12,
"24h"=>24,"week"=>7*24,"month"=>31*24,"year"=>365*24);

obstler
20-12-2004, 13:27
yup, that fixed it again. thanks.

charles
09-07-2005, 00:37
I just upgraded from 1.0 to 1.1alpha10 and have the same "no data displayed for 1 hour graphs" problem. I checked classes.inc.php but that line doesn't exist and what looks like something similar is commented out already. I have verified the raw data is there by displaying the text values.

I am seeing another graphing problem in addition to this one. On another graph I am getting a very broken looking graph - like it only has about 30% of the data to graph and isnt extrapolating. Looks like someone shot it! It the same for the hourly graph in this case, as well as predefined graphs.

Any ideas?

thanks
charles

charles
09-07-2005, 06:01
Just wanted to mention that I have setup a test server with a clean 1.1alpha10 install and it displays the data on the 1 hour graphs.

hth
charles