From: Sasa M. <sa...@us...> - 2004-12-31 08:45:30
|
Update of /cvsroot/jrobin/src/org/jrobin/data In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8220/org/jrobin/data Modified Files: DataProcessor.java Log Message: bugfix: http://www.jrobin.org/mantis/bug_view_page.php?bug_id=0000073 Index: DataProcessor.java =================================================================== RCS file: /cvsroot/jrobin/src/org/jrobin/data/DataProcessor.java,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** DataProcessor.java 29 Dec 2004 11:36:50 -0000 1.7 --- DataProcessor.java 31 Dec 2004 08:45:17 -0000 1.8 *************** *** 60,67 **** * no other value is specified with {@link #setStep(long) setStep()} method. */ ! public static final int DEFAUL_PIXEL_COUNT = 400; private static final double DEFAULT_PERCENTILE = 95.0; // % ! private int pixelCount = DEFAUL_PIXEL_COUNT; /** --- 60,67 ---- * no other value is specified with {@link #setStep(long) setStep()} method. */ ! public static final int DEFAULT_PIXEL_COUNT = 400; private static final double DEFAULT_PERCENTILE = 95.0; // % ! private int pixelCount = DEFAULT_PIXEL_COUNT; /** *************** *** 153,157 **** * the dimension of your graph.<p> * ! * The default number of pixels is defined by constant {@link #DEFAUL_PIXEL_COUNT} * and can be changed with a {@link #setPixelCount(int)} method. * --- 153,157 ---- * the dimension of your graph.<p> * ! * The default number of pixels is defined by constant {@link #DEFAULT_PIXEL_COUNT} * and can be changed with a {@link #setPixelCount(int)} method. * *************** *** 330,334 **** public double getPercentile(String sourceName, double percentile) throws RrdException { if(percentile <= 0.0 || percentile > 100.0) { ! throw new RrdException("Invalid percentile [" + percentile + "], sohuld be between 0 and 100"); } Source source = getSource(sourceName); --- 330,334 ---- public double getPercentile(String sourceName, double percentile) throws RrdException { if(percentile <= 0.0 || percentile > 100.0) { ! throw new RrdException("Invalid percentile [" + percentile + "], should be between 0 and 100"); } Source source = getSource(sourceName); |