Let's, actually, directly assign to uploadDirSize.
This commit is contained in:
parent
7e1b56bbc5
commit
31d2c4fd21
@ -112,12 +112,10 @@ func main() {
|
|||||||
logUpload.Reopen(config.Log.Upload)
|
logUpload.Reopen(config.Log.Upload)
|
||||||
logDownload.Reopen(config.Log.Download)
|
logDownload.Reopen(config.Log.Download)
|
||||||
case <-uploadDirNotify:
|
case <-uploadDirNotify:
|
||||||
sz, err := utils.DirectorySize(config.Uploads.Directory)
|
uploadDirSize, err = utils.DirectorySize(config.Uploads.Directory)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
logErr.Println("failed to get uploads directory size:", err)
|
logErr.Println("failed to get uploads directory size:", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
uploadDirSize = sz
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
|
Loading…
Reference in New Issue
Block a user