def update_views(self): """Update stats views.""" # Call the father's method GlancesPlugin.update_views(self) # Add specifics informations # Alert and log self.views['used']['decoration'] = self.get_alert_log(self.stats['used'], maximum=self.stats['total'])
def update_views(self): """Update stats views""" # Call the father's method GlancesPlugin.update_views(self) # Add specifics informations # Alert and log self.views['used']['decoration'] = self.get_alert_log(self.stats['used'], max=self.stats['total'])
def update_views(self): """Update stats views.""" # Call the father's method GlancesPlugin.update_views(self) # Add specifics informations # Optional for key in self.stats.keys(): self.views[key]['optional'] = True
def update_views(self): """Update stats views.""" # Call the father's method GlancesPlugin.update_views(self) # Add specifics informations # Alert for i in self.stats: self.views[i[self.get_key()]]['used']['decoration'] = self.get_alert( i['used'], maximum=i['size'], header=i['mnt_point'])
def update_views(self): """Update stats views.""" # Call the father's method GlancesPlugin.update_views(self) # Add specifics informations # Alert only for key in ['cpu', 'mem', 'swap']: if key in self.stats: self.views[key]['decoration'] = self.get_alert(self.stats[key], header=key)
def update_views(self): """Update stats views""" # Call the father's method GlancesPlugin.update_views(self) # Add specifics informations # Alert for i in self.stats: self.views[i[ self.get_key()]]['used']['decoration'] = self.get_alert( i['used'], max=i['size'], header=i['mnt_point'])
def update_views(self): """Update stats views.""" # Call the father's method GlancesPlugin.update_views(self) # Add specifics informations # Alert and log self.views['used']['decoration'] = self.get_alert_log(self.stats['used'], maximum=self.stats['total']) # Optional for key in ['active', 'inactive', 'buffers', 'cached']: if key in self.stats: self.views[key]['optional'] = True
def update_views(self): """Update stats views""" # Call the father's method GlancesPlugin.update_views(self) # Add specifics informations # Alert for i in self.stats: ifrealname = i['interface_name'].split(':')[0] self.views[i[self.get_key()]]['rx']['decoration'] = self.get_alert(int(i['rx'] // i['time_since_update'] * 8), header=ifrealname + '_rx') self.views[i[self.get_key()]]['tx']['decoration'] = self.get_alert(int(i['tx'] // i['time_since_update'] * 8), header=ifrealname + '_tx')
def update_views(self): """Update stats views.""" # Call the father's method GlancesPlugin.update_views(self) # Add specifics informations # Alert for i in self.stats: disk_real_name = i['disk_name'] self.views[i[self.get_key()]]['read_bytes']['decoration'] = self.get_alert(int(i['read_bytes'] // i['time_since_update']), header=disk_real_name + '_rx') self.views[i[self.get_key()]]['write_bytes']['decoration'] = self.get_alert(int(i['write_bytes'] // i['time_since_update']), header=disk_real_name + '_tx')
def update_views(self): """Update stats views""" # Call the father's method GlancesPlugin.update_views(self) # Add specifics informations # Alert for i in self.stats: disk_real_name = i['disk_name'] self.views[i[self.get_key()]]['read_bytes']['decoration'] = self.get_alert(int(i['read_bytes'] // i['time_since_update']), header=disk_real_name + '_rx') self.views[i[self.get_key()]]['write_bytes']['decoration'] = self.get_alert(int(i['write_bytes'] // i['time_since_update']), header=disk_real_name + '_tx')
def update_views(self): """Update stats views""" # Call the father's method GlancesPlugin.update_views(self) # Add specifics informations try: # Alert and log self.views['min15']['decoration'] = self.get_alert_log(self.stats['min15'], max=100 * self.stats['cpucore']) # Alert only self.views['min5']['decoration'] = self.get_alert(self.stats['min5'], max=100 * self.stats['cpucore']) except KeyError: # try/except mandatory for Windows compatibility (no load stats) pass
def update_views(self): """Update stats views.""" # Call the father's method GlancesPlugin.update_views(self) # Add specifics informations # Alert for i in self.stats: if not i['value']: continue if i['type'] == 'battery': self.views[i[self.get_key()]]['value']['decoration'] = self.get_alert(100 - i['value'], header=i['type']) else: self.views[i[self.get_key()]]['value']['decoration'] = self.get_alert(i['value'], header=i['type'])
def update_views(self): """Update stats views""" # Call the father's method GlancesPlugin.update_views(self) # Add specifics informations # Alert for i in self.stats: ifrealname = i['interface_name'].split(':')[0] self.views[i[self.get_key()]]['rx']['decoration'] = self.get_alert( int(i['rx'] // i['time_since_update'] * 8), header=ifrealname + '_rx') self.views[i[self.get_key()]]['tx']['decoration'] = self.get_alert( int(i['tx'] // i['time_since_update'] * 8), header=ifrealname + '_tx')
def update_views(self): """Update stats views.""" # Call the father's method GlancesPlugin.update_views(self) # Add specifics informations # Alert and log for key in ['user', 'system', 'iowait']: if key in self.stats: self.views[key]['decoration'] = self.get_alert_log(self.stats[key], header=key) # Alert only for key in ['steal', 'total']: if key in self.stats: self.views[key]['decoration'] = self.get_alert(self.stats[key], header=key) # Optional for key in ['nice', 'irq', 'iowait', 'steal']: if key in self.stats: self.views[key]['optional'] = True
def update_views(self): """Update stats views""" # Call the father's method GlancesPlugin.update_views(self) # Add specifics informations # Alert and log for key in ['user', 'system', 'iowait']: if key in self.stats: self.views[key]['decoration'] = self.get_alert_log(self.stats[key], header=key) self.views['total']['decoration'] = self.get_alert_log(self.stats['total'], header="system") # Alert only for key in ['steal']: if key in self.stats: self.views[key]['decoration'] = self.get_alert(self.stats[key], header=key) # Optional for key in ['nice', 'irq', 'iowait', 'steal']: if key in self.stats: self.views[key]['optional'] = True