Skip to content

Commit

Permalink
Fix rrd4j database start time (#15277)
Browse files Browse the repository at this point in the history
Signed-off-by: Jan N. Klug <github@klug.nrw>
  • Loading branch information
J-N-K committed Jul 20, 2023
1 parent f8968b7 commit 0beaada
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,7 @@ public Set<PersistenceItemInfo> getItemInfo() {
RrdDefConfig useRdc = getRrdDefConfig(itemName);
if (useRdc != null) {
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);
for (RrdArchiveDef rad : useRdc.archives) {
rrdDef.addArchive(rad.fcn, rad.xff, rad.steps, rad.rows);
Expand Down

0 comments on commit 0beaada

Please sign in to comment.