????
Current Path : /usr/share/dstat/ |
Current File : //usr/share/dstat/dstat_helloworld.py |
### Author: Dag Wieers <dag$wieers,com> class dstat_plugin(dstat): """ Example "Hello world!" output plugin for aspiring Dstat developers. """ def __init__(self): self.type = 's' self.width = 12 self.scale = 0 self.name = 'plugin title' self.nick = ('counter',) self.vars = ('text',) def extract(self): self.val['text'] = 'Hello world!' # vim:ts=4:sw=4:et