Set default port to 8081
This commit is contained in:
parent
8d36e1e245
commit
d0816a0e3c
4
main.go
4
main.go
@ -28,7 +28,7 @@ const (
|
||||
gpuThreshold = 20.0 // percentage
|
||||
diskThreshold = 5 * 1024 * 1024 // 5 MB/s
|
||||
networkThreshold = 1 * 1024 * 1024 // 1 MB/s
|
||||
httpPort = 8080
|
||||
httpPort = 8081
|
||||
)
|
||||
|
||||
type ResourceUsage struct {
|
||||
@ -383,4 +383,4 @@ func isSystemIdle(history []ResourceUsage) bool {
|
||||
func suspendSystem() error {
|
||||
cmd := exec.Command("systemctl", "suspend")
|
||||
return cmd.Run()
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user