diff --git a/Modules/Net/main.swift b/Modules/Net/main.swift index b079f6a5..f0c99d13 100644 --- a/Modules/Net/main.swift +++ b/Modules/Net/main.swift @@ -219,10 +219,12 @@ public class Network: Module { var upload: Int64 = value.bandwidth.upload var download: Int64 = value.bandwidth.download if self.widgetActivationThresholdState { + upload = 0 + download = 0 let threshold = self.widgetActivationThresholdSize.toBytes(self.widgetActivationThreshold) if value.bandwidth.upload >= threshold || value.bandwidth.download >= threshold { - upload = 0 - download = 0 + upload = value.bandwidth.upload + download = value.bandwidth.download } }