Ver código fonte

优化代码

niujiuru 2 semanas atrás
pai
commit
54a48ede47
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      web-ui.service/page1_handler.go

+ 1 - 1
web-ui.service/page1_handler.go

@@ -196,7 +196,7 @@ func getMemInfo() (int, string, string) {
 }
 
 func getDiskInfo() (int, string, string) {
-	out, err := exec.Command("df", "-h", "/").Output()
+	out, err := exec.Command("df", "-hP", "/").Output()
 	if err != nil {
 		return 0, noValue, noValue
 	}