diff options
author | Steve Manuel <nilslice@gmail.com> | 2016-11-04 12:19:24 -0700 |
---|---|---|
committer | Steve Manuel <nilslice@gmail.com> | 2016-11-04 12:19:24 -0700 |
commit | 33e38247b580e9f5b38a4aa8a186f3ac2c814f05 (patch) | |
tree | 04c7cc4e6b68c88f8342ec851c048c1c3f67cbe7 /system/api/analytics/init.go | |
parent | 9837dd10412213ce941879fa5416cadfc7f12841 (diff) |
testing optimization for cpu usage that is less interruptive
Diffstat (limited to 'system/api/analytics/init.go')
-rw-r--r-- | system/api/analytics/init.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/system/api/analytics/init.go b/system/api/analytics/init.go index f9d8ef2..fd65a79 100644 --- a/system/api/analytics/init.go +++ b/system/api/analytics/init.go @@ -103,8 +103,8 @@ func serve() { case <-pruneDBTimer.C: - default: - time.Sleep(time.Millisecond * 1) + case <-time.After(time.Second * 30): + continue } } } |