mirror of
https://github.com/DI0IK/homepage-plus.git
synced 2025-07-10 07:18:47 +00:00
Enhancement: support different bytes multipliers for disk space for resources / glances and metrics widgets (#2966)
This commit is contained in:
parent
3fae59c2bd
commit
291bf422f9
8 changed files with 22 additions and 12 deletions
|
@ -395,6 +395,7 @@ export function cleanServiceGroups(groups) {
|
|||
chart,
|
||||
metric,
|
||||
pointsLimit,
|
||||
diskUnits,
|
||||
|
||||
// glances, customapi, iframe
|
||||
refreshInterval,
|
||||
|
@ -533,6 +534,7 @@ export function cleanServiceGroups(groups) {
|
|||
}
|
||||
if (refreshInterval) cleanedService.widget.refreshInterval = refreshInterval;
|
||||
if (pointsLimit) cleanedService.widget.pointsLimit = pointsLimit;
|
||||
if (diskUnits) cleanedService.widget.diskUnits = diskUnits;
|
||||
}
|
||||
if (type === "mjpeg") {
|
||||
if (stream) cleanedService.widget.stream = stream;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue