Browse Source

UI: Restore data generation condition - fix realtime data generator

pull/4307/head
Igor Kulikov 5 years ago
parent
commit
ccd316a91b
  1. 2
      ui-ngx/src/app/core/api/entity-data-subscription.ts

2
ui-ngx/src/app/core/api/entity-data-subscription.ts

@ -799,7 +799,7 @@ export class EntityDataSubscription {
} else {
prevSeries = [0, 0];
}
for (let time = startTime; time < endTime && (this.timer || this.history); time += this.frequency) {
for (let time = startTime; time <= endTime && (this.timer || this.history); time += this.frequency) {
const value = dataKey.func(time, prevSeries[1]);
const series: [number, any] = [time, value];
data.push(series);

Loading…
Cancel
Save