mirror of
https://github.com/DI0IK/homepage-plus.git
synced 2025-07-10 15:28:47 +00:00
Enhancement: add bitrate precision config option for speedtest-tracker (#3354)
--------- Co-authored-by: shamoon <4887959+shamoon@users.noreply.github.com>
This commit is contained in:
parent
312e97d18b
commit
340424391f
3 changed files with 25 additions and 2 deletions
|
@ -450,6 +450,9 @@ export function cleanServiceGroups(groups) {
|
|||
// proxmox
|
||||
node,
|
||||
|
||||
// speedtest
|
||||
bitratePrecision,
|
||||
|
||||
// sonarr, radarr
|
||||
enableQueue,
|
||||
|
||||
|
@ -588,6 +591,11 @@ export function cleanServiceGroups(groups) {
|
|||
if (type === "healthchecks") {
|
||||
if (uuid !== undefined) cleanedService.widget.uuid = uuid;
|
||||
}
|
||||
if (type === "speedtest") {
|
||||
if (bitratePrecision !== undefined) {
|
||||
cleanedService.widget.bitratePrecision = parseInt(bitratePrecision, 10);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return cleanedService;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue