"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "moskito-webui/src/main/java/net/anotheria/moskito/webui/gauges/api/GaugeAPIImpl.java" between
moskito-moskito-2.9.3.tar.gz and moskito-moskito-2.10.0.tar.gz

About: MoSKito (Monitoring System Kit) is a framework for java application monitoring. Sources.

GaugeAPIImpl.java  (moskito-moskito-2.9.3):GaugeAPIImpl.java  (moskito-moskito-2.10.0)
skipping to change at line 186 skipping to change at line 186
//Obviously producer exists, but there are no values in THIS interval. Probably it is something like AVG (because NaN can't come from legal values). //Obviously producer exists, but there are no values in THIS interval. Probably it is something like AVG (because NaN can't come from legal values).
//lets check if we have a previou s value we can re-use. //lets check if we have a previou s value we can re-use.
StatValueAO previousValue = getPr eviousValue(config); StatValueAO previousValue = getPr eviousValue(config);
if (previousValue != null) if (previousValue != null)
return previousValue; return previousValue;
return new StringValueAO(null, "n .A."); return new StringValueAO(null, "n .A.");
} }
StatValueAO numericValue = null; StatValueAO numericValue = null;
try { try {
numericValue = new LongValueAO(nu ll, Long.valueOf(value)); numericValue = new LongValueAO(nu ll, Long.parseLong(value));
} catch (NumberFormatException e) { } catch (NumberFormatException e) {
try { try {
numericValue = new Double ValueAO(null, Double.valueOf(value)); numericValue = new Double ValueAO(null, Double.valueOf(value));
} catch (NumberFormatException e2 ) { } catch (NumberFormatException e2 ) {
log.error("Can't parse lo ng/double value, probably invalid value for gauge " + config); log.error("Can't parse lo ng/double value, probably invalid value for gauge " + config);
return new StringValueAO( null, "Error"); return new StringValueAO( null, "Error");
} }
} }
saveValueForLater(config, numericValue); saveValueForLater(config, numericValue);
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)