Explorar el Código

Fixing compile bug

Brendan Fosberry hace 10 años
padre
commit
302cd99322
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      examples/realtime-advanced/stats.go

+ 1 - 1
examples/realtime-advanced/stats.go

@@ -18,7 +18,7 @@ func statsWorker() {
 	c := time.Tick(1 * time.Second)
 	var lastMallocs uint64 = 0
 	var lastFrees uint64 = 0
-	for range c {
+	for _ = range c {
 		var stats runtime.MemStats
 		runtime.ReadMemStats(&stats)