Skip to content

Commit

Permalink
Fix red colour allocation bug for over quota notice
Browse files Browse the repository at this point in the history
  • Loading branch information
peterdey committed Dec 5, 2013
1 parent 056cbd0 commit 02ddc85
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internode.php
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,7 @@ function display_history() {
$darkgreen = imagecolorallocate($im, 0, 102,0);
$blue = imagecolorallocate($im, 0,0,204);
$orange = imagecolorallocate($im, 153,153,0);
$xred = imagecolorallocate($im, 224,0,0);

// And graph colours.
//
Expand Down Expand Up @@ -556,7 +557,7 @@ function display_history() {
$unit = "Mb";
}
$string = sprintf("WARNING: You are %.1f %s over quota!", $over, $unit );
imagestring($im, 2, IMAGE_BORDER_LEFT+IMAGE_BORDER+imagefontwidth(2), (imagefontheight(2) * 4), $string, $red);
imagestring($im, 2, IMAGE_BORDER_LEFT+IMAGE_BORDER+imagefontwidth(2), (imagefontheight(2) * 4), $string, $xred);
}
} else {
$string = $string = sprintf("Graph Interval: %d days", count($this->history));
Expand Down

0 comments on commit 02ddc85

Please sign in to comment.