diff --git a/common/common_func.cpp b/common/common_func.cpp index 1079ab1..862557c 100644 --- a/common/common_func.cpp +++ b/common/common_func.cpp @@ -1167,7 +1167,7 @@ int GetSysStatusCMT(int& cpu_use,int& mem_use,int& disk_remain,int& cpu_temp) int temp = getSysIntValue(key); cpu_use = rateUser; mem_use = fMemRate * 100; - disk_remain = atoi(strhardFree.substr(0, strhardFree.length() - 1).c_str()); + disk_remain = atoi(hardFree); cpu_temp = temp / 1000.0; } // 闁诲繐绻愬Λ妤€鐣烽悢鍝モ枖闁跨噦鎷�16闁哄鏅滅粙鎴﹀春濡ゅ啠鍋撳☉娆樻畼妞ゆ垳鐒﹀顏堫敆娴gǹ绨ユ繛鎴炴尭閹碱偊顢氶鑺ュ劅闁哄啫鍊归悾閬嶆倵濞戞瑯娈欏┑鈽嗗弮瀹曟劙鏁撻敓锟�