mirror of
https://github.com/i2p/i2p.i2p.git
synced 2026-10-23 02:12:54 +00:00
try to fix RrdGraph GIF exception
This commit is contained in:
1 parent
592361b1a4
commit
68dccdfe2f
3 files changed
+5
-1
No files matched your search
@@ -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");
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user