Fix my math on ringbuffer size

This commit is contained in:
Herbert Wolverson
2024-06-21 13:01:47 -05:00
parent 5e9ca16426
commit ce22bca2c1

View File

@@ -1,13 +1,15 @@
import {DashboardGraph} from "./dashboard_graph";
import {scaleNumber} from "../scaling";
const RING_SIZE = 60 * 5; // 5 Minutes
export class ThroughputRingBufferGraph extends DashboardGraph {
constructor(id) {
super(id);
this.ringbuffer = new RingBuffer(600);
this.ringbuffer = new RingBuffer(RING_SIZE);
let xaxis = [];
for (let i=0; i<600; i++) {
for (let i=0; i<RING_SIZE; i++) {
xaxis.push(i);
}