- update structure name in modules

- add arguments support (--reset, --disable)
- update a README
This commit is contained in:
Serhiy Mytrovtsiy
2020-06-28 22:31:40 +02:00
parent 8669bb0c2b
commit 3f8ee3bd65
17 changed files with 107 additions and 60 deletions

View File

@@ -18,7 +18,7 @@ public enum Network_t: String {
case ethernet
}
public struct Usage: value_t {
public struct Network_Usage: value_t {
var active: Bool = false
var download: Int64 = 0
@@ -73,7 +73,7 @@ public class Network: Module {
self.addReader(self.usageReader)
}
private func usageCallback(_ value: Usage?) {
private func usageCallback(_ value: Network_Usage?) {
if value == nil {
return
}