This commit is contained in:
Abhishek Pandey 2023-08-09 21:02:50 +05:30
parent e647659d4b
commit 11bbc98bdf
2 changed files with 3 additions and 3 deletions

View File

@ -14,8 +14,8 @@ import (
"github.com/pkg/profile"
)
var profileTicker = time.NewTicker(600 * time.Second)
var printTicker = time.NewTicker(60 * time.Second)
var profileTicker = time.NewTicker(300 * time.Second)
var printTicker = time.NewTicker(10 * time.Second)
var profileCounter = 0
func main() {

View File

@ -468,7 +468,7 @@ func (oc *Collection) populateItems(ctx context.Context, errs *fault.Bus) {
wg.Wait()
// free up memory
oc.driveItems = nil
oc.driveItems = make(map[string]models.DriveItemable)
oc.reportAsCompleted(ctx, int(stats.itemsFound), int(stats.itemsRead), stats.byteCount)
}