Skip to content

Commit

Permalink
Fixed bug: Daily remaining needs to be divided by BYTE_A_MB to draw c…
Browse files Browse the repository at this point in the history
…orrectly
  • Loading branch information
peterdey committed Dec 7, 2013
1 parent 85b43e0 commit 9cc68d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internode.php
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,7 @@ function display_history() {
imagedashedline($graph, 0, (IMAGE_HEIGHT-$y), $g_width, (IMAGE_HEIGHT-$y), $gblue);

// Add remaining daily average.
$y = ($this->remaining/$this->days_remaining) * (IMAGE_HEIGHT) / $max;
$y = ($this->remaining/BYTE_A_MB/$this->days_remaining) * (IMAGE_HEIGHT) / $max;
imagedashedline($graph, 0, (IMAGE_HEIGHT-$y), $g_width, (IMAGE_HEIGHT-$y), $gorange);

// Graph done. Resize it to target.
Expand Down

0 comments on commit 9cc68d2

Please sign in to comment.