This commit is contained in:
Serhiy Mytrovtsiy
2021-07-18 15:01:10 +02:00
parent 570a7a63c3
commit c5c4e4df3d
5 changed files with 17 additions and 6 deletions

View File

@@ -54,7 +54,11 @@ class AppDelegate: NSObject, NSApplicationDelegate, NSUserNotificationCenterDele
self.defaultValues()
self.updateCron()
info("Stats started in \((startingPoint.timeIntervalSinceNow * -1).rounded(toPlaces: 4)) seconds")
Server.shared.sendEvent(modules: modules.filter({ $0.enabled != false && $0.available != false }).map({ $0.config.name }))
Server.shared.sendEvent(
modules: modules.filter({ $0.enabled != false && $0.available != false }).map({ $0.config.name }),
omit: CommandLine.arguments.contains("--omit")
)
}
func applicationWillTerminate(_ aNotification: Notification) {