missing cob fix
This commit is contained in:
parent
b39fe2ee5e
commit
8c213cbc11
|
@ -545,6 +545,10 @@ public class IobCobCalculatorPlugin implements PluginBase {
|
||||||
//log.debug(">>> getAutosensData Cache hit " + data.log(time));
|
//log.debug(">>> getAutosensData Cache hit " + data.log(time));
|
||||||
return data;
|
return data;
|
||||||
} else {
|
} else {
|
||||||
|
if (time > now) {
|
||||||
|
// data may not be calculated yet, use last data
|
||||||
|
return getLastAutosensData();
|
||||||
|
}
|
||||||
//log.debug(">>> getAutosensData Cache miss " + new Date(time).toLocaleString());
|
//log.debug(">>> getAutosensData Cache miss " + new Date(time).toLocaleString());
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue