Exemplo n.º 1
0
 def index(self):
   tmpl = lookup.get_template("index.html")
   
   total,used,free = sysinfo.diskUsage("/")
   
   top = sysinfo.top(20)
   
   title = sysinfo.hostInfo()
   print "title", title
   return tmpl.render(free=free,used=used,top=top,title=title)
Exemplo n.º 2
0
 def top(self, numlines=20, *args, **kw):
   return sysinfo.top(numlines);