说明:idle.py
根据网络和磁盘活动确定Linux系统是否空闲。 结合唤醒方法(例如LAN唤醒),这对于减少服务器系统的功耗很有用。
目标
最小依赖
python3兼容性
使用范例
# Consider idle state when eth0 network interface had a rate under 10kB/s on average in the last 10 seconds.
$ ./python/idle.py -i eth0 -t $( expr 10 \* 1024 )
<weixin_42128270> 上传 | 大小:9kb