* graphs.jsp: Remove jrobin sig, set lower limit to 0

This commit is contained in:
zzz
2010-01-18 14:54:32 +00:00
parent 27a5793fd0
commit 08a2b4bbf0
3 changed files with 4 additions and 2 deletions

View File

@ -156,6 +156,7 @@ public class StatSummarizer implements Runnable {
try {
RrdGraphDef def = new RrdGraphDef();
def.setTimePeriod(start/1000, 0);
def.setLowerLimit(0d);
def.setBaseValue(1024);
String title = "Bandwidth usage";
if (!hideTitle)

View File

@ -173,7 +173,7 @@ class SummaryRenderer {
throw ioe;
}
}
public void render(OutputStream out) throws IOException { render(out, -1, -1, false, false, false, false, -1, true); }
public void render(OutputStream out) throws IOException { render(out, -1, -1, false, false, false, false, -1, false); }
public void render(OutputStream out, int width, int height, boolean hideLegend, boolean hideGrid, boolean hideTitle, boolean showEvents, int periodCount, boolean showCredit) throws IOException {
long end = _listener.now() - 60*1000;
if (periodCount <= 0) periodCount = SummaryListener.PERIODS;
@ -184,6 +184,7 @@ class SummaryRenderer {
try {
RrdGraphDef def = new RrdGraphDef();
def.setTimePeriod(start/1000, 0);
def.setLowerLimit(0d);
String name = _listener.getRate().getRateStat().getName();
// heuristic to set K=1024
if ((name.startsWith("bw.") || name.indexOf("Size") >= 0 || name.indexOf("Bps") >= 0 || name.indexOf("memory") >= 0)