Add time range support to charts

This commit is contained in:
Thomas Nordquist
2019-07-07 23:54:28 +02:00
parent 0ff6359a41
commit 77dcbccd5c
3 changed files with 48 additions and 23 deletions

View File

@@ -54,6 +54,11 @@ export class RingBuffer<T extends Lengthwise> {
this.usage -= freedSpace
}
public setCapacity(items: number, bytes: number) {
this.maxItems = items
this.capacity = bytes
}
public clone(): RingBuffer<T> {
return new RingBuffer(this.capacity, this.maxItems, this)
}