Displaying differences for changeset |
@@ -13,7 +13,7 @@ |
import java.util.GregorianCalendar; |
/** |
-* Last Updated: 23-June-2014 |
+* Last Updated: 3-July-2014 |
* @author Tyler Wible |
* @since 29-June-2011 |
*/ |
@@ -39,7 +39,7 @@ |
import org.jfree.data.xy.XYSeriesCollection; |
/** |
-* Last Updated: 1-July-2014 |
+* Last Updated: 3-July-2014 |
* @author Tyler Wible |
* @since 24-June-2011 |
*/ |
@@ -1048,6 +1048,7 @@ |
} |
} |
//Calculate monthly average |
+ if(ctr == 0){ctr = 1;}// prevent divide by zero problems |
series.add(j, flow/ctr); |
monthXYdata[j-1][0] = String.valueOf(j); |
monthXYdata[j-1][1] = String.valueOf(flow/ctr); |