From: Arne V. <cob...@us...> - 2004-07-10 00:06:37
|
Update of /cvsroot/jrobin/src/org/jrobin/core In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10998/org/jrobin/core Modified Files: FetchData.java RrdDataSet.java Log Message: JRobin 1.4.0 - Value grid tweaking - Fixed graph generation - Modified setExportData into addExportData on RrdExportDef level - Added getStep() to RrdDataSet interface Index: FetchData.java =================================================================== RCS file: /cvsroot/jrobin/src/org/jrobin/core/FetchData.java,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** FetchData.java 9 Jul 2004 12:20:10 -0000 1.6 --- FetchData.java 10 Jul 2004 00:06:29 -0000 1.7 *************** *** 122,125 **** --- 122,133 ---- /** + * Returns the step with which this data was fetched. + * @return Step as long. + */ + public long getStep() { + return timestamps[1] - timestamps[0]; + } + + /** * Returns all archived values for a single datasource. * Returned values correspond to timestamps Index: RrdDataSet.java =================================================================== RCS file: /cvsroot/jrobin/src/org/jrobin/core/RrdDataSet.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** RrdDataSet.java 9 Jul 2004 12:20:11 -0000 1.1 --- RrdDataSet.java 10 Jul 2004 00:06:29 -0000 1.2 *************** *** 117,120 **** --- 117,127 ---- /** + * Returns the step of these datasources. + * + * @return Step as long. + */ + public long getStep(); + + /** * Returns aggregated value from the dataset for a single datasource. * |