文件操作 - dstat_proc_count.py
返回文件管理
返回主菜单
删除本文件
文件: /usr/share/dstat/dstat_proc_count.py
编辑文件内容
### Author: Dag Wieers <dag@wieers.com> class dstat_plugin(dstat): """ Total Number of processes on this system. """ def __init__(self): self.name = 'procs' self.vars = ('total',) self.type = 'd' self.width = 4 self.scale = 10 def extract(self): self.val['total'] = len([pid for pid in proc_pidlist()])
修改文件时间
将文件时间修改为当前时间的前一年
删除文件