mirror of
https://github.com/safing/portmaster
synced 2025-09-01 10:09:11 +00:00
Clean up status package
This commit is contained in:
parent
eea1ec6a56
commit
fd203fc8a7
2 changed files with 3 additions and 2 deletions
|
@ -58,7 +58,7 @@ func SetPortmasterStatus(pmStatus uint8, msg string) {
|
||||||
|
|
||||||
go status.Save()
|
go status.Save()
|
||||||
default:
|
default:
|
||||||
log.Errorf("status: tried to set portmaster to invalid status: %d", status)
|
log.Errorf("status: tried to set portmaster to invalid status: %d", pmStatus)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -75,7 +75,7 @@ func SetGate17Status(g17Status uint8, msg string) {
|
||||||
|
|
||||||
go status.Save()
|
go status.Save()
|
||||||
default:
|
default:
|
||||||
log.Errorf("status: tried to set gate17 to invalid status: %d", status)
|
log.Errorf("status: tried to set gate17 to invalid status: %d", g17Status)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -20,6 +20,7 @@ func init() {
|
||||||
}
|
}
|
||||||
|
|
||||||
// SystemStatus saves basic information about the current system status.
|
// SystemStatus saves basic information about the current system status.
|
||||||
|
//nolint:maligned // TODO
|
||||||
type SystemStatus struct {
|
type SystemStatus struct {
|
||||||
record.Base
|
record.Base
|
||||||
sync.Mutex
|
sync.Mutex
|
||||||
|
|
Loading…
Add table
Reference in a new issue