diff options
| author | osmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2007-02-01 10:07:26 +0000 |
|---|---|---|
| committer | osmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2007-02-01 10:07:26 +0000 |
| commit | 24372356bb3dbd748c65bdb829069a14af3ac022 (patch) | |
| tree | 5982b9952b347139f3ca5f8348b6d15c62153b5e /frontends/php/include/classes/graph.inc.php | |
| parent | c17c948ea64b3d38bcd289da57948c172892985c (diff) | |
| download | zabbix-24372356bb3dbd748c65bdb829069a14af3ac022.tar.gz zabbix-24372356bb3dbd748c65bdb829069a14af3ac022.tar.xz zabbix-24372356bb3dbd748c65bdb829069a14af3ac022.zip | |
fixed time stamp calculation for graph
git-svn-id: svn://svn.zabbix.com/trunk@3781 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/include/classes/graph.inc.php')
| -rw-r--r-- | frontends/php/include/classes/graph.inc.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/frontends/php/include/classes/graph.inc.php b/frontends/php/include/classes/graph.inc.php index 177c4759..9daa0f67 100644 --- a/frontends/php/include/classes/graph.inc.php +++ b/frontends/php/include/classes/graph.inc.php @@ -1072,7 +1072,8 @@ if($first_idx == $ci && $var_name == 'clock') { - $var[$ci - ($dx - $cj)] = $var[$first_idx] - ($p / $this->sizeX * $cj); + $var[$ci - ($dx - $cj)] = + $var[$first_idx] - ($p / $this->sizeX * ($dx - $cj)); continue; } @@ -1096,7 +1097,8 @@ if($var_name == 'clock') { - $var[$first_idx + ($dx - $cj)] = $var[$first_idx] + ($p / $this->sizeX * $cj); + $var[$first_idx + ($dx - $cj)] = + $var[$first_idx] + ($p / $this->sizeX * ($dx - $cj)); continue; } $var[$first_idx + ($dx - $cj)] = $var[$first_idx]; |
