From: Sasa M. <sa...@us...> - 2004-04-20 10:22:14
|
Update of /cvsroot/jrobin/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24439 Modified Files: Demo.java Log Message: Slightly modified to test read-only access to a RRD file Index: Demo.java =================================================================== RCS file: /cvsroot/jrobin/src/Demo.java,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** Demo.java 22 Mar 2004 09:27:13 -0000 1.13 --- Demo.java 20 Apr 2004 10:22:03 -0000 1.14 *************** *** 99,103 **** log.println(sample.dump()); sample.update(); - t += RANDOM.nextDouble() * MAX_STEP + 1; if(((++n) % 1000) == 0) { --- 99,102 ---- *************** *** 108,111 **** --- 107,115 ---- println("== Finished. RRD file updated " + n + " times"); println("== Last update time was: " + rrdDb.getLastUpdateTime()); + rrdDb.close(); + + // test read-only access! + rrdDb = new RrdDb(rrdPath, true); + println("File reopen in read-only mode"); // fetch data |