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()); //System.out.println("*****************\nData: \n" + _listener.getData().dump());
def.setWidth(width); def.setWidth(width);
def.setHeight(height); def.setHeight(height);
def.setImageFormat("PNG");
def.setLazy(true);
RrdGraph graph = new RrdGraph(def); RrdGraph graph = new RrdGraph(def);
//System.out.println("Graph created"); //System.out.println("Graph created");

View File

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

View File

@ -18,7 +18,7 @@ public class RouterVersion {
/** deprecated */ /** deprecated */
public final static String ID = "Monotone"; public final static String ID = "Monotone";
public final static String VERSION = CoreVersion.VERSION; public final static String VERSION = CoreVersion.VERSION;
public final static long BUILD = 4; public final static long BUILD = 5;
/** for example "-test" */ /** for example "-test" */
public final static String EXTRA = ""; public final static String EXTRA = "";