v0.32.6_fix2

This commit is contained in:
Mateusz Gruszczyński committed 2026-10-14 11:51:37 +02:00
1 parent e1ac899ec0
commit fc8711d4d8
39 files changed
+695 -232

No files matched your search

+2 -2
View File
@@ -13,7 +13,7 @@ impl Default for RefreshPreferences {
fn default() -> Self {
Self {
live_enabled: true,
overview_seconds: 2,
overview_seconds: 3,
traffic_seconds: 5,
cache_seconds: 5,
system_info_seconds: 60,
@@ -22,7 +22,7 @@ impl Default for RefreshPreferences {
}
fn validate_refresh_preferences(refresh: &RefreshPreferences) -> Result<(), ApiError> {
if ![1, 2, 5, 10].contains(&refresh.overview_seconds)
if ![1, 2, 3, 5, 10].contains(&refresh.overview_seconds)
|| ![0, 3, 5, 10, 30].contains(&refresh.traffic_seconds)
|| ![0, 3, 5, 10, 30].contains(&refresh.cache_seconds)
|| ![0, 15, 30, 60, 300].contains(&refresh.system_info_seconds)