No limit on cache size. ()

This commit is contained in:
Antonio Navarro Perez 2021-01-13 14:31:46 +01:00 committed by GitHub
parent ae289e99dd
commit 5a6ce96e18
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 1 deletions

View file

@ -37,6 +37,9 @@ function CacheChart(id, name) {
this.update = function (used, free) {
this._chart.data.datasets.forEach((dataset) => {
dataset.data[0] = used;
if (free < 0) {
free = 0;
}
dataset.data[1] = free;
});