apply bugfix for ChartPlotter from Pullreq 42

https://github.com/yacy/yacy_search_server/pull/42
thanks to otteresk (https://github.com/otteresk)
pull/51/head
reger 9 years ago
parent 2995389604
commit 125b5e26a5

@ -168,7 +168,7 @@ public class ChartPlotter extends RasterPlotter {
} }
setColor(colorNaming); setColor(colorNaming);
line(x - 3, y, x + 3, y, 100); line(x - 3, y, x + 3, y, 100);
s1 = (s >= 1000000 && s % 10000 == 0) ? Integer.toString(s / 1000000) + "M" : (s >= 1000 && s % 1000 == 0) ? Integer.toString(s / 1000) + "K" : Integer.toString(s); s1 = (s >= 1000000 && s % 1000000 == 0) ? Integer.toString(s / 1000000) + "M" : (s >= 1000 && s % 1000 == 0) ? Integer.toString(s / 1000) + "K" : Integer.toString(s);
if (s1.length() > s1max) s1max = s1.length(); if (s1.length() > s1max) s1max = s1.length();
PrintTool.print(this, (left) ? this.leftborder - 4 : this.width - this.rightborder + 4, y, 0, s1, (left) ? 1 : -1, 80); PrintTool.print(this, (left) ? this.leftborder - 4 : this.width - this.rightborder + 4, y, 0, s1, (left) ? 1 : -1, 80);
y -= pixelperscale; y -= pixelperscale;

Loading…
Cancel
Save