mirror of
https://github.com/JustKato/drive-health.git
synced 2026-04-30 01:42:29 +03:00
Rootless Run
+ Debug Tools * ReadME * Optimized config, now it's cached * ReWrote and optimized logic.go * rewrote and optimized + Styling improvements
This commit is contained in:
@@ -20,8 +20,15 @@ type DHConfig struct {
|
||||
DebugMode bool `json:"debugMode"`
|
||||
}
|
||||
|
||||
func GetConfiguration() DHConfig {
|
||||
config := DHConfig{
|
||||
var config *DHConfig = nil
|
||||
|
||||
func GetConfiguration() *DHConfig {
|
||||
|
||||
if config != nil {
|
||||
return config
|
||||
}
|
||||
|
||||
config = &DHConfig{
|
||||
DiskFetchFrequency: 5,
|
||||
CleanupServiceFrequency: 3600,
|
||||
MaxHistoryAge: 2592000,
|
||||
|
||||
Reference in New Issue
Block a user