Charts: Reduce max to 1 hour, remove seconds from x axis

This commit is contained in:
zzz
2022-01-02 08:54:35 -05:00
parent cc4f276011
commit 1a23735d8e
2 changed files with 4 additions and 4 deletions

View File

@ -31,8 +31,8 @@ import net.i2p.itoopie.i18n.Transl;
public class BandwidthChart extends Chart2D{
private static ConfigurationManager _conf = ConfigurationManager.getInstance();
private final static int DEFAULT_UPDATE_INTERVAL = 10000; // Update every 2500th ms
private final static int DEFAULT_GRAPH_INTERVAL = 2*3600*1000; // The graph will cover a maximum of 2hrs
private final static String DATE_FORMAT = "HH:mm:ss";
private final static int DEFAULT_GRAPH_INTERVAL = 3600*1000; // The graph will cover a maximum of this time
private final static String DATE_FORMAT = "HH:mm";
private ObjRecorder2Trace2DAdapter bwInAdapter;
private ObjRecorder2Trace2DAdapter bwOutAdapter;
private InboundBandwidthTracker bwInTracker;

View File

@ -30,8 +30,8 @@ import net.i2p.itoopie.i18n.Transl;
public class ParticipatingTunnelsChart extends Chart2D {
private static ConfigurationManager _conf = ConfigurationManager.getInstance();
private final static int DEFAULT_UPDATE_INTERVAL = 10000; // Update every 1000th ms
private final static int DEFAULT_GRAPH_INTERVAL = 2*3600*1000; // The graph will cover a maximum of 2hrs
private final static String DATE_FORMAT = "HH:mm:ss";
private final static int DEFAULT_GRAPH_INTERVAL = 3600*1000; // The graph will cover a maximum of this time
private final static String DATE_FORMAT = "HH:mm";
private ParticipatingTunnelsTracker partTunnelTracker;
private ObjRecorder2Trace2DAdapter partTunnelAdapter;