mirror of
https://github.com/morgan9e/macos-stats
synced 2026-04-14 00:04:15 +09:00
feat: small codebase refactoring (mostly removed unused code and changes in access control)
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
import Cocoa
|
||||
import Kit
|
||||
|
||||
public struct CPU_Load: value_t, Codable {
|
||||
public struct CPU_Load: Codable {
|
||||
var totalUsage: Double = 0
|
||||
var usagePerCore: [Double] = []
|
||||
var usageECores: Double? = nil
|
||||
@@ -18,12 +18,6 @@ public struct CPU_Load: value_t, Codable {
|
||||
var systemLoad: Double = 0
|
||||
var userLoad: Double = 0
|
||||
var idleLoad: Double = 0
|
||||
|
||||
public var widgetValue: Double {
|
||||
get {
|
||||
return self.totalUsage
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public struct CPU_Limit: Codable {
|
||||
|
||||
Reference in New Issue
Block a user