2010-02-07 157 views

回答

1

如果您安装了npm,还有cli工具,称为macstats。 您可以通过安装它:

[sudo] npm install macstats -g

然后,只需运行命令,它会给你的输出,如:

--- CPU Stats --- 
CPU Temp:  33.75°C 

--- Fans Stats --- 
Fan 0 speed:  1996 RPM 
Fan 1 speed:  2003 RPM 

--- Battery Stats --- 
Charged:   82% 
Capacity:  92% 
Cycle Count:  692 (69%) 
Max Cycle Count: 1000 
Current Charge: 5189 mAh 
Maximum Charge: 6316 mAh 
Design Capacity: 6900 mAh 
Time Remaining: 6.54 h 
Temperature:  30.06°C 

这些工具还公开API,你可以在使用自定义应用程序。
有关更多信息,请参阅https://github.com/jkuri/macstats