mirror of
https://github.com/gethomepage/homepage.git
synced 2025-12-06 21:57:48 +01: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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user