No limit on cache size. (#31)
This commit is contained in:
parent
ae289e99dd
commit
5a6ce96e18
3 changed files with 6 additions and 1 deletions
assets/js
|
@ -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;
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue