From 0871e43fcc1782063cc8244a639825c0a2335c92 Mon Sep 17 00:00:00 2001 From: Michael Peter Christen Date: Tue, 6 Jan 2015 14:22:43 +0100 Subject: [PATCH] better scale --- htroot/NetworkHistory.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htroot/NetworkHistory.java b/htroot/NetworkHistory.java index 1390159c3..ef7c329df 100644 --- a/htroot/NetworkHistory.java +++ b/htroot/NetworkHistory.java @@ -123,9 +123,9 @@ public class NetworkHistory { if (columns.contains("cI")) headline = "YACY PEER '" + sb.peers.myName() + "' INDEX SIZE HISTORY: NUMBER OF DOCUMENTS"; if (columns.contains("cR")) headline = "YACY PEER '" + sb.peers.myName() + "' INDEX SIZE HISTORY: NUMBER OF RWI ENTRIES"; ChartPlotter chart = new ChartPlotter(width, height, 0xFFFFFFl, 0x000000l, 0xAAAAAAl, leftborder, rightborder, topborder, bottomborder, headline, "IN THE LAST " + timestr); - int pixelperscale = Math.max(1, hspace / (maxtime / bottomscale)); + int pixelperscale = Math.max(16, hspace / (maxtime / bottomscale)); chart.declareDimension(ChartPlotter.DIMENSION_BOTTOM, bottomscale, pixelperscale, -maxtime, 0x000000l, 0xCCCCCCl, "TIME/HOURS"); - pixelperscale = Math.max(1, 10 * ((vspace * leftscale / (maxpeers - minpeers)) / 10)); + pixelperscale = Math.max(16, 10 * ((vspace * leftscale / (maxpeers - minpeers)) / 10)); chart.declareDimension(ChartPlotter.DIMENSION_LEFT, leftscale, pixelperscale, minpeers, 0x008800l, null , columns.contains("cI") ? "DOCUMENTS" : columns.contains("cR") ? "RWIs" : "PEERS"); // write the data