diff options
| author | artem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2007-10-31 12:00:01 +0000 |
|---|---|---|
| committer | artem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2007-10-31 12:00:01 +0000 |
| commit | b65a1f95a97ca22c886e56986ba56ebacbe3b394 (patch) | |
| tree | 434242a0602df7a44c86af871a5e0e2348af6e52 /frontends/php/include | |
| parent | 8dfc37f2248bff23f8328f714b06418fcfaaa8dc (diff) | |
| download | zabbix-b65a1f95a97ca22c886e56986ba56ebacbe3b394.tar.gz zabbix-b65a1f95a97ca22c886e56986ba56ebacbe3b394.tar.xz zabbix-b65a1f95a97ca22c886e56986ba56ebacbe3b394.zip | |
- [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
Diffstat (limited to 'frontends/php/include')
| -rw-r--r-- | frontends/php/include/classes/chart.inc.php | 2 |
1 files changed, 2 insertions, 0 deletions
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]; |
