summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--svc/cache_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/svc/cache_test.go b/svc/cache_test.go
index 04eabb8..f167913 100644
--- a/svc/cache_test.go
+++ b/svc/cache_test.go
@@ -65,7 +65,7 @@ func Benchmark_cacheUpdate(b *testing.B) {
 		// make sure it's pulling new statuses
 		// half the time so we get a good idea
 		// of its performance in both cases.
-		if i > 2 && i%2 == 0 {
+		if i > (b.N/2) && i%2 == 0 {
 			b.StopTimer()
 			killStatuses()
 			b.StartTimer()