- periodic scan

This commit is contained in:
Alex Ling
2020-02-16 17:20:12 +00:00
parent 26bb49fab5
commit d9129ad58f
3 changed files with 17 additions and 6 deletions

View File

@@ -13,7 +13,7 @@ class Config
property db_path = File.expand_path "~/mango/mango.db", home: true
@[YAML::Field(key: "scan_interval_minutes")]
property scan_interval = 5
property scan_interval : Int32 = 5
def self.load
cfg_path = File.expand_path "~/.config/mango/config.yml", home: true