diff --git a/Assets/Translations/de.json b/Assets/Translations/de.json index a8cdfa5d..d145aab2 100644 --- a/Assets/Translations/de.json +++ b/Assets/Translations/de.json @@ -1845,6 +1845,9 @@ "description": "Passe die Warn-/Kritisch-Schwellen und die Abfrageintervalle für jede Systemmetrik an.", "label": "Schwellenwerte" }, + "network-section": { + "label": "Netzwerk" + }, "title": "Systemmonitor", "use-custom-highlight-colors": { "description": "Wenn deaktiviert, werden die Standard-Hervorhebungsfarben des Themes verwendet.", diff --git a/Assets/Translations/en.json b/Assets/Translations/en.json index d51313ea..1aa6af22 100644 --- a/Assets/Translations/en.json +++ b/Assets/Translations/en.json @@ -1814,9 +1814,6 @@ "disk-warning-threshold": { "label": "Warning threshold" }, - "network-section": { - "label": "Network" - }, "general": { "section": { "description": "Configure the system monitor behavior and appearance.", @@ -1841,6 +1838,9 @@ "polling-interval": { "label": "Polling interval" }, + "network-section": { + "label": "Network" + }, "temp-warning-threshold": { "label": "Warning threshold" }, diff --git a/Assets/Translations/es.json b/Assets/Translations/es.json index 02cf048a..dbc18ed0 100644 --- a/Assets/Translations/es.json +++ b/Assets/Translations/es.json @@ -1845,6 +1845,9 @@ "description": "Ajusta los umbrales de advertencia/crítico y los intervalos de sondeo para cada métrica del sistema.", "label": "Umbrales" }, + "network-section": { + "label": "Red" + }, "title": "Monitor del sistema", "use-custom-highlight-colors": { "description": "Cuando está desactivado, se usan los colores de resaltado predeterminados del tema.", diff --git a/Assets/Translations/fr.json b/Assets/Translations/fr.json index b0ac8558..4b6a8bda 100644 --- a/Assets/Translations/fr.json +++ b/Assets/Translations/fr.json @@ -1845,6 +1845,9 @@ "description": "Ajustez les seuils d’avertissement/critiques et les intervalles d’interrogation pour chaque métrique système.", "label": "Seuils" }, + "network-section": { + "label": "Réseau" + }, "title": "Moniteur système", "use-custom-highlight-colors": { "description": "Lorsque cette option est désactivée, les couleurs de surbrillance par défaut du thème sont utilisées.", diff --git a/Assets/Translations/nl.json b/Assets/Translations/nl.json index cb74d85a..91418a93 100644 --- a/Assets/Translations/nl.json +++ b/Assets/Translations/nl.json @@ -1845,6 +1845,9 @@ "description": "Pas de waarschuwing/kritieke drempels en de pollingsintervallen voor elke systeemmetriek aan.", "label": "Drempels" }, + "network-section": { + "label": "Netwerk" + }, "title": "Systeemmonitor", "use-custom-highlight-colors": { "description": "Indien uitgeschakeld, worden de standaard markeerkleuren van het thema gebruikt.", diff --git a/Assets/Translations/pt.json b/Assets/Translations/pt.json index 3199a63c..6ee649a8 100644 --- a/Assets/Translations/pt.json +++ b/Assets/Translations/pt.json @@ -1845,6 +1845,9 @@ "description": "Ajuste os limites de aviso/crítico e os intervalos de consulta para cada métrica do sistema.", "label": "Limiares" }, + "network-section": { + "label": "Rede" + }, "title": "Monitor do Sistema", "use-custom-highlight-colors": { "description": "Quando desativado, são usadas as cores de destaque padrão do tema.", diff --git a/Assets/Translations/ru.json b/Assets/Translations/ru.json index 2b6b21dd..4ec5fd8b 100644 --- a/Assets/Translations/ru.json +++ b/Assets/Translations/ru.json @@ -1845,6 +1845,9 @@ "description": "Настройте пороги предупреждения/критические пороги и интервалы опроса для каждой системной метрики.", "label": "Пороги" }, + "network-section": { + "label": "Сеть" + }, "title": "Системный монитор", "use-custom-highlight-colors": { "description": "Если отключено, используются цвета выделения по умолчанию темы.", diff --git a/Assets/Translations/tr.json b/Assets/Translations/tr.json index 1519649e..0744aedc 100644 --- a/Assets/Translations/tr.json +++ b/Assets/Translations/tr.json @@ -1845,6 +1845,9 @@ "description": "Her sistem metriği için uyarı/kritik eşiklerini ve yoklama aralıklarını ayarlayın.", "label": "Eşikler" }, + "network-section": { + "label": "Ağ" + }, "title": "Sistem İzleme", "use-custom-highlight-colors": { "description": "Devre dışı bırakıldığında, tema varsayılan vurgulama renkleri kullanılır.", diff --git a/Assets/Translations/uk-UA.json b/Assets/Translations/uk-UA.json index 3a02d6cf..c2124a2c 100644 --- a/Assets/Translations/uk-UA.json +++ b/Assets/Translations/uk-UA.json @@ -1845,6 +1845,9 @@ "description": "Налаштуйте пороги попередження/критичні пороги та інтервали опитування для кожного системного показника.", "label": "Пороги" }, + "network-section": { + "label": "Мережа" + }, "title": "Системний монітор", "use-custom-highlight-colors": { "description": "Якщо вимкнено, використовуються кольори підсвічування за замовчуванням теми.", diff --git a/Assets/Translations/zh-CN.json b/Assets/Translations/zh-CN.json index 6526cf2e..84263a96 100644 --- a/Assets/Translations/zh-CN.json +++ b/Assets/Translations/zh-CN.json @@ -1845,6 +1845,9 @@ "description": "为每个系统指标调整警告/严重阈值和轮询间隔。", "label": "阈值" }, + "network-section": { + "label": "网络" + }, "title": "系统监视器", "use-custom-highlight-colors": { "description": "关闭时将使用主题默认高亮颜色。", diff --git a/Assets/settings-default.json b/Assets/settings-default.json index 792d86ea..fffa09a5 100644 --- a/Assets/settings-default.json +++ b/Assets/settings-default.json @@ -238,6 +238,7 @@ "tempPollingInterval": 3000, "memPollingInterval": 3000, "diskPollingInterval": 3000, + "networkPollingInterval": 3000, "useCustomColors": false, "warningColor": "", "criticalColor": "" diff --git a/Commons/Settings.qml b/Commons/Settings.qml index 9f931165..fa627720 100644 --- a/Commons/Settings.qml +++ b/Commons/Settings.qml @@ -414,6 +414,7 @@ Singleton { property int tempPollingInterval: 3000 property int memPollingInterval: 3000 property int diskPollingInterval: 3000 + property int networkPollingInterval: 3000 property bool useCustomColors: false property string warningColor: "" property string criticalColor: "" diff --git a/Modules/Panels/Settings/Tabs/SystemMonitorTab.qml b/Modules/Panels/Settings/Tabs/SystemMonitorTab.qml index 797b98b2..765887d4 100644 --- a/Modules/Panels/Settings/Tabs/SystemMonitorTab.qml +++ b/Modules/Panels/Settings/Tabs/SystemMonitorTab.qml @@ -433,4 +433,39 @@ ColumnLayout { } } } + + // Network + NText { + Layout.fillWidth: true + Layout.topMargin: Style.marginM + text: I18n.tr("settings.system-monitor.network-section.label") + pointSize: Style.fontSizeM + } + + RowLayout { + Layout.fillWidth: true + spacing: Style.marginM + + ColumnLayout { + Layout.fillWidth: true + spacing: Style.marginM + + NText { + Layout.alignment: Qt.AlignHCenter + horizontalAlignment: Text.AlignHCenter + text: I18n.tr("settings.system-monitor.polling-interval.label") + pointSize: Style.fontSizeS + } + + NSpinBox { + Layout.alignment: Qt.AlignHCenter + from: 250 + to: 10000 + stepSize: 250 + value: Settings.data.systemMonitor.networkPollingInterval + onValueChanged: Settings.data.systemMonitor.networkPollingInterval = value + suffix: " ms" + } + } + } } diff --git a/Services/System/SystemStatService.qml b/Services/System/SystemStatService.qml index cdb7baf9..70238812 100644 --- a/Services/System/SystemStatService.qml +++ b/Services/System/SystemStatService.qml @@ -117,10 +117,15 @@ Singleton { // Timer for network speeds Timer { id: networkTimer - interval: root.defaultIntervalMs + interval: root.normalizeInterval(Settings.data.systemMonitor.networkPollingInterval) repeat: true running: true triggeredOnStart: true + onIntervalChanged: { + if (running) { + restart(); + } + } onTriggered: netDevFile.reload() }