free mem
This commit is contained in:
parent
e647659d4b
commit
11bbc98bdf
@ -14,8 +14,8 @@ import (
|
|||||||
"github.com/pkg/profile"
|
"github.com/pkg/profile"
|
||||||
)
|
)
|
||||||
|
|
||||||
var profileTicker = time.NewTicker(600 * time.Second)
|
var profileTicker = time.NewTicker(300 * time.Second)
|
||||||
var printTicker = time.NewTicker(60 * time.Second)
|
var printTicker = time.NewTicker(10 * time.Second)
|
||||||
var profileCounter = 0
|
var profileCounter = 0
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
|||||||
@ -468,7 +468,7 @@ func (oc *Collection) populateItems(ctx context.Context, errs *fault.Bus) {
|
|||||||
wg.Wait()
|
wg.Wait()
|
||||||
|
|
||||||
// free up memory
|
// free up memory
|
||||||
oc.driveItems = nil
|
oc.driveItems = make(map[string]models.DriveItemable)
|
||||||
oc.reportAsCompleted(ctx, int(stats.itemsFound), int(stats.itemsRead), stats.byteCount)
|
oc.reportAsCompleted(ctx, int(stats.itemsFound), int(stats.itemsRead), stats.byteCount)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user