Rod Hynes 10 лет назад
Родитель
Сommit
80973e778d
1 измененных файлов с 2 добавлено и 0 удалено
  1. 2 0
      psiphon/transferstats/collector.go

+ 2 - 0
psiphon/transferstats/collector.go

@@ -157,6 +157,8 @@ func TakeOutStatsForServer(serverID string) (accumulatedStats *AccumulatedStats)
 	newAccumulatedStats := &AccumulatedStats{
 		hostnameToStats: make(map[string]*hostStats)}
 
+	// Note: for an existing serverStats, only the accumulatedStats is
+	// affected; the recentBytes fields are not changed.
 	serverStats := allStats.serverIDtoStats[serverID]
 	if serverStats != nil {
 		accumulatedStats = serverStats.accumulatedStats