fix: account for HTTP/S traffic and separate network curves

This commit is contained in:
2026-11-02 14:13:26 +08:00
parent 5291b2ab72
commit 4c3b7ead4e
10 changed files with 336 additions and 13 deletions
+1 -1
View File
@@ -50,7 +50,7 @@ func TestMonitoringUsesRawStatistics(t *testing.T) {
if index == 1 {
value = 200
}
history.Samples = append(history.Samples, map[string]float64{"time": float64(time.Now().Add(time.Duration(index-500) * time.Second).UnixMilli()), "https4": value, "rsync4": 0})
history.Samples = append(history.Samples, map[string]float64{"time": float64(time.Now().Add(time.Duration(index-500) * time.Second).UnixMilli()), "http4": value, "rsync4": 0})
}
raw, _ := json.Marshal(history)
path := filepath.Join(t.TempDir(), "history.json")