From b65a1f95a97ca22c886e56986ba56ebacbe3b394 Mon Sep 17 00:00:00 2001 From: artem Date: Wed, 31 Oct 2007 12:00:01 +0000 Subject: - [ZBX-81] merged rev. 4950:4952 of branches/1.4/ (Artem) (graph fix) git-svn-id: svn://svn.zabbix.com/trunk@4953 97f52cf1-0a1b-0410-bd0e-c28be96e8082 --- frontends/php/include/classes/chart.inc.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'frontends/php/include/classes/chart.inc.php') diff --git a/frontends/php/include/classes/chart.inc.php b/frontends/php/include/classes/chart.inc.php index b10968d2..bf6196ae 100644 --- a/frontends/php/include/classes/chart.inc.php +++ b/frontends/php/include/classes/chart.inc.php @@ -710,6 +710,8 @@ class Chart extends Graph{ ' from trends where itemid='.$this->items[$i]['itemid'].' and clock>='.$from_time. ' and clock<='.$to_time.' group by itemid,'.$calc_field ); + + $this->items[$i]['delay'] = max(($this->items[$i]['delay']*ZBX_GRAPH_MAX_DELAY),ZBX_MAX_TREND_DIFF)/ZBX_GRAPH_MAX_DELAY + 1; } $curr_data = &$this->data[$this->items[$i]["itemid"]][$type]; -- cgit