diff --git a/htroot/NetworkHistory.java b/htroot/NetworkHistory.java index c6adda118..47e5a68ff 100644 --- a/htroot/NetworkHistory.java +++ b/htroot/NetworkHistory.java @@ -110,7 +110,7 @@ public class NetworkHistory { int scale=(int)Math.pow(10, order); minpeers=(minpeers/scale)*scale; maxpeers=((maxpeers/scale)+1)*scale; - if ((maxpeers-minpeers)/scale < 3) scale=scale/2; + if ((maxpeers-minpeers)/scale < 3) scale=Math.max(1,scale/2); final int leftborder = 30; final int rightborder = 10; final int width = post.getInt("width", 768 + leftborder + rightborder);