1
0
mirror of https://github.com/yacy/yacy_search_server.git synced 2025-07-15 08:06:08 -04:00

emergency bugfix for 100% CPU in image drawing

This commit is contained in:
Michael Peter Christen
2014-11-02 13:28:10 +01:00
parent 92007e5d2d
commit fe8b1d137d

@ -159,6 +159,7 @@ public class ChartPlotter extends RasterPlotter {
private void drawVerticalScale(final boolean left, final int scale, final int pixelperscale, final int offset, final Long colorNaming, final Long colorScale, final String name) {
assert pixelperscale > 0;
assert scale > 0;
if (pixelperscale <= 0) return; // this would not meet the termination condition in the while loop
final int x = (left) ? this.leftborder : this.width - this.rightborder;
int y = this.height - this.bottomborder;
int s = offset;