Getting tasks

This commit is contained in:
Richard Patel
2018-11-16 04:47:08 +01:00
parent 3c39f0d621
commit 3f85cf679b
6 changed files with 77 additions and 65 deletions

View File

@@ -39,6 +39,10 @@ func Stats(c context.Context) {
perSecond = math.Round(perSecond)
perSecond /= 2
if perSecond <= 0 {
continue
}
logrus.WithFields(logrus.Fields{
"per_second": perSecond,
"done": atomic.LoadUint64(&totalDone),