perfsonar-dev - perfsonar: r3253 - branches/perfsonarui/src/org/perfsonar/perfsonarui/ui/panels
Subject: perfsonar development work
List archive
perfsonar: r3253 - branches/perfsonarui/src/org/perfsonar/perfsonarui/ui/panels
Chronological Thread
- From:
- To:
- Subject: perfsonar: r3253 - branches/perfsonarui/src/org/perfsonar/perfsonarui/ui/panels
- Date: Fri, 18 Jan 2008 08:32:16 -0500
Author: nina
Date: 2008-01-18 08:32:14 -0500 (Fri, 18 Jan 2008)
New Revision: 3253
Modified:
branches/perfsonarui/src/org/perfsonar/perfsonarui/ui/panels/PerfsonarTimeSeries.java
Log:
don't clear the time series if same data and time only differ by less than 10
min
Modified:
branches/perfsonarui/src/org/perfsonar/perfsonarui/ui/panels/PerfsonarTimeSeries.java
===================================================================
---
branches/perfsonarui/src/org/perfsonar/perfsonarui/ui/panels/PerfsonarTimeSeries.java
2008-01-18 11:05:38 UTC (rev 3252)
+++
branches/perfsonarui/src/org/perfsonar/perfsonarui/ui/panels/PerfsonarTimeSeries.java
2008-01-18 13:32:14 UTC (rev 3253)
@@ -52,6 +52,7 @@
*
*/
public class PerfsonarTimeSeries extends XYSeriesCollection implements
ITimeValueResponse {
+ protected long eps = 10 * 60 * 1000; //10 min in ms
protected static PSLogger logger = new
PSLogger(PerfsonarTimeSeries.class);
protected String title;
protected IUserData userData;
@@ -134,7 +135,7 @@
.parseLong(userData.getStartTime()) *
1000;
long newtimeEnd =
Long.parseLong(userData.getEndTime()) * 1000;
- if ((newtimeEnd != timeEnd) || (newtimeStart !=
timeStart)) {
+ if ((Math.abs(newtimeEnd-timeEnd)>eps) ||(
Math.abs(newtimeStart - timeStart) > eps)) {
/*
System.out.println("Current\t"+title+"\t"+timeStart +
"\t-->\t" + timeEnd + "\tPoints="+series.getItemCount());
System.out.println("New\t"+title+"\t"+newtimeStart +
"\t-->\t" + newtimeEnd);
- perfsonar: r3253 - branches/perfsonarui/src/org/perfsonar/perfsonarui/ui/panels, svnlog, 01/18/2008
Archive powered by MHonArc 2.6.16.