sugar-toolkit-gtk3/shell/console/plugins/clean_size/info.py

16 lines
475 B
Python
Raw Normal View History

2006-11-16 13:09:07 +01:00
###########################################################
# Main function:
# -----------------
# self: self plugin object
# mself: memphis object / principal class
# pinfo: row with information about current tracing process
############################################################
def plg_on_top_data_refresh(self, pinfo):
# Get clean size
maps = self.INTERNALS['Plg'].proc_get_maps(pinfo['pid'])
2006-11-16 13:09:07 +01:00
size = (maps.clean_size/1024)
return [size]