summaryrefslogtreecommitdiffstats
path: root/frontends/php/include/classes.inc.php
diff options
context:
space:
mode:
authorhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2003-09-08 19:19:01 +0000
committerhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2003-09-08 19:19:01 +0000
commitce16b9b39927d15bc9f7141ab3eab823f799aaa8 (patch)
treea89410f10925921945168d7d1579c28fd117a06f /frontends/php/include/classes.inc.php
parent210d801d52adfefc023119389d47cfa0448c5ab8 (diff)
downloadzabbix-ce16b9b39927d15bc9f7141ab3eab823f799aaa8.tar.gz
zabbix-ce16b9b39927d15bc9f7141ab3eab823f799aaa8.tar.xz
zabbix-ce16b9b39927d15bc9f7141ab3eab823f799aaa8.zip
- fixed interpretation of parameter 'from' for graphs (Alexei)
git-svn-id: svn://svn.zabbix.com/trunk@973 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/include/classes.inc.php')
-rw-r--r--frontends/php/include/classes.inc.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/frontends/php/include/classes.inc.php b/frontends/php/include/classes.inc.php
index 064d32c6..10729577 100644
--- a/frontends/php/include/classes.inc.php
+++ b/frontends/php/include/classes.inc.php
@@ -364,7 +364,7 @@
{
$now = time(NULL);
$this->to_time=$now-3600*$this->from;
- $this->from_time=$this->to_time-$this->period-3600*$this->from;
+ $this->from_time=$this->to_time-$this->period;
$p=$this->to_time-$this->from_time;
$z=$p-$this->from_time%$p;