mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-10 15:11:59 +01:00
Fix rrd4j database start time (#15277)
Signed-off-by: Jan N. Klug <github@klug.nrw>
This commit is contained in:
parent
f8968b780a
commit
0beaada48c
@ -587,7 +587,7 @@ public class RRD4jPersistenceService implements QueryablePersistenceService {
|
|||||||
RrdDefConfig useRdc = getRrdDefConfig(itemName);
|
RrdDefConfig useRdc = getRrdDefConfig(itemName);
|
||||||
if (useRdc != null) {
|
if (useRdc != null) {
|
||||||
rrdDef.setStep(useRdc.step);
|
rrdDef.setStep(useRdc.step);
|
||||||
rrdDef.setStartTime(System.currentTimeMillis() / 1000 - 1);
|
rrdDef.setStartTime(System.currentTimeMillis() / 1000 - useRdc.step);
|
||||||
rrdDef.addDatasource(DATASOURCE_STATE, useRdc.dsType, useRdc.heartbeat, useRdc.min, useRdc.max);
|
rrdDef.addDatasource(DATASOURCE_STATE, useRdc.dsType, useRdc.heartbeat, useRdc.min, useRdc.max);
|
||||||
for (RrdArchiveDef rad : useRdc.archives) {
|
for (RrdArchiveDef rad : useRdc.archives) {
|
||||||
rrdDef.addArchive(rad.fcn, rad.xff, rad.steps, rad.rows);
|
rrdDef.addArchive(rad.fcn, rad.xff, rad.steps, rad.rows);
|
||||||
|
Loading…
Reference in New Issue
Block a user