try to fix RrdGraph GIF exception

This commit is contained in:
zzz
2011-05-23 23:24:54 +00:00
parent 592361b1a4
commit 68dccdfe2f
3 changed files with 5 additions and 1 deletions

View File

@ -334,6 +334,8 @@ public class StatSummarizer implements Runnable {
//System.out.println("*****************\nData: \n" + _listener.getData().dump());
def.setWidth(width);
def.setHeight(height);
def.setImageFormat("PNG");
def.setLazy(true);
RrdGraph graph = new RrdGraph(def);
//System.out.println("Graph created");

View File

@ -164,6 +164,8 @@ class SummaryRenderer {
//System.out.println("*****************\nData: \n" + _listener.getData().dump());
def.setWidth(width);
def.setHeight(height);
def.setImageFormat("PNG");
def.setLazy(true);
RrdGraph graph = new RrdGraph(def);
int totalWidth = graph.getRrdGraphInfo().getWidth();