mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-02-04 20:50:06 +00:00
优化监控上传
This commit is contained in:
@@ -3,10 +3,17 @@ package main
|
||||
import (
|
||||
"log"
|
||||
"os/exec"
|
||||
|
||||
"github.com/shirou/gopsutil/disk"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
||||
dparts, _ := disk.Partitions(false)
|
||||
for _, part := range dparts {
|
||||
u, _ := disk.Usage(part.Mountpoint)
|
||||
log.Printf("Part:%v", part)
|
||||
log.Printf("Usage:%v", u)
|
||||
}
|
||||
}
|
||||
|
||||
func cmdExec() {
|
||||
|
||||
Reference in New Issue
Block a user