feat: moved from UnsafePointer<Store> to sharable instance (Store.shared)

This commit is contained in:
Serhiy Mytrovtsiy
2021-03-20 16:33:14 +01:00
parent 5d0dc75b2f
commit cd689999ac
39 changed files with 233 additions and 339 deletions

View File

@@ -23,14 +23,14 @@ var store: Store = Store()
let updater = macAppUpdater(user: "exelban", repo: "stats")
var smc: SMCService = SMCService()
var modules: [Module] = [
Battery(&store),
Network(&store),
Fans(&store, &smc),
Sensors(&store, &smc),
Disk(&store),
RAM(&store),
GPU(&store, &smc),
CPU(&store, &smc),
Battery(),
Network(),
Fans(&smc),
Sensors(&smc),
Disk(),
RAM(),
GPU(&smc),
CPU(&smc),
].reversed()
var log = OSLog(subsystem: Bundle.main.bundleIdentifier!, category: "Stats")