summaryrefslogtreecommitdiffstats
path: root/frontends/php/include/classes/graph.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'frontends/php/include/classes/graph.inc.php')
-rw-r--r--frontends/php/include/classes/graph.inc.php6
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];