mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2025-02-16 09:59:49 +03:00
* call debug.FreeOSMemory() once in 5 minutes
This commit is contained in:
parent
45745943a5
commit
781f011419
1 changed files with 1 additions and 1 deletions
2
main.go
2
main.go
|
@ -40,7 +40,7 @@ func memoryUsage() {
|
|||
// periodically call "debug.FreeOSMemory" so
|
||||
// that the OS could reclaim the free memory
|
||||
go func() {
|
||||
ticker := time.NewTicker(15 * time.Second)
|
||||
ticker := time.NewTicker(5 * time.Minute)
|
||||
for {
|
||||
select {
|
||||
case t := <-ticker.C:
|
||||
|
|
Loading…
Add table
Reference in a new issue