mirror of
https://github.com/danieldemus/openhab-addons
synced 2026-07-29 12:34:21 +02:00
+2
-2
@@ -589,8 +589,8 @@ public class RRD4jPersistenceService implements QueryablePersistenceService {
|
||||
// First get the last update state and time
|
||||
currentValue = db.getLastDatasourceValue(DATASOURCE_STATE);
|
||||
lastUpdate = db.getLastArchiveUpdateTime();
|
||||
if (currentValue == Double.NaN) {
|
||||
logger.debug("Could not find persisted value for item '{}' in rrjd4j database", itemName);
|
||||
if (Double.isNaN(currentValue)) {
|
||||
logger.debug("Could not find persisted value for item '{}' in rrd4j database", itemName);
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user