Update of /cvsroot/jrobin/src
In directory sc8-pr-cvs1:/tmp/cvs-serv27498
Modified Files:
Demo.java
Log Message:
Minor code changes
Index: Demo.java
===================================================================
RCS file: /cvsroot/jrobin/src/Demo.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** Demo.java 11 Nov 2003 11:44:12 -0000 1.5
--- Demo.java 13 Nov 2003 11:45:35 -0000 1.6
***************
*** 39,43 ****
static final long START = Util.getTimestamp(2003, 4, 1);
static final long END = Util.getTimestamp(2003, 5, 1);
! static final int MAX_STEP = 240;
public static void main(String[] args) throws RrdException, IOException {
--- 39,43 ----
static final long START = Util.getTimestamp(2003, 4, 1);
static final long END = Util.getTimestamp(2003, 5, 1);
! static final int MAX_STEP = 300;
public static void main(String[] args) throws RrdException, IOException {
***************
*** 117,120 ****
--- 117,126 ----
RrdDb rrdRestoredDb = new RrdDb(rrdRestoredPath, xmlPath);
+ // dumping RRD file
+ //println("==Dumping original RRD file to stdout");
+ //println(rrdDb.dump());
+ //println("==Dumping restored RRD file to stdout");
+ //println(rrdRestoredDb.dump());
+
// close files
println("==Closing both RRD files");
***************
*** 188,192 ****
value = 0;
}
! return oldValue;
}
}
--- 194,198 ----
value = 0;
}
! return Math.round(oldValue);
}
}
|