def retrieveVals(self):
if self.hasGraph('<STR_LIT>'):<EOL><INDENT>self._loadstats = self._sysinfo.getLoadAvg()<EOL>if self._loadstats:<EOL><INDENT>self.setGraphVal('<STR_LIT>', '<STR_LIT>', self._loadstats[<NUM_LIT:2>])<EOL>self.setGraphVal('<STR_LIT>', '<STR_LIT>', self._loadstats[<NUM_LIT:1>])<EOL>self.setGraphVal('<STR_LIT>', '<STR_LIT>', self._loadstats[<NUM_LIT:0>])<EOL><DEDENT><DEDENT>if self._cpustats and self.hasGraph('<STR_LIT>'):<EOL><INDENT>for field in self.getGraphFieldList('<STR_LIT>'):<EOL><INDENT>self.setGraphVal('<STR_LIT>', <EOL>field, int(self._cpustats[field] * <NUM_LIT:1000>))<EOL><DEDENT><DEDENT>if self._memstats:<EOL><INDENT>if self.hasGraph('<STR_LIT>'):<EOL><INDENT>for field in self.getGraphFieldList('<STR_LIT>'):<EOL><INDENT>self.setGraphVal('<STR_LIT>', <EOL>field, self._memstats[field])<EOL><DEDENT><DEDENT>if self.hasGraph('<STR_LIT>'):<EOL><INDENT>for field in self.getGraphFieldList('<STR_LIT>'):<EOL><INDENT>self.setGraphVal('<STR_LIT>', <EOL>field, self._memstats[field])<EOL><DEDENT><DEDENT>if self.hasGraph('<STR_LIT>'):<EOL><INDENT>for field in ['<STR_LIT>', '<STR_LIT>', '<STR_LIT>']:<EOL><INDENT>fkey = '<STR_LIT>' + field<EOL>if self._memstats.has_key(fkey):<EOL><INDENT>self.setGraphVal('<STR_LIT>', field, <EOL>self._memstats[fkey] * self._memstats['<STR_LIT>'])<EOL><DEDENT><DEDENT><DEDENT><DEDENT>if self.hasGraph('<STR_LIT>'):<EOL><INDENT>if self._procstats is None:<EOL><INDENT>self._procstats = self._sysinfo.getProcessStats()<EOL><DEDENT>if self._procstats:<EOL><INDENT>self.setGraphVal('<STR_LIT>', '<STR_LIT>', <EOL>self._procstats['<STR_LIT>'])<EOL>self.setGraphVal('<STR_LIT>', '<STR_LIT>', <EOL>self._procstats['<STR_LIT>'])<EOL><DEDENT><DEDENT>if self.hasGraph('<STR_LIT>'):<EOL><INDENT>if self._procstats is None:<EOL><INDENT>self._procstats = self._sysinfo.getProcessStats()<EOL><DEDENT>if self._procstats:<EOL><INDENT>self.setGraphVal('<STR_LIT>', '<STR_LIT>', <EOL>self._procstats['<STR_LIT>'])<EOL><DEDENT><DEDENT>if self.hasGraph('<STR_LIT>'):<EOL><INDENT>if self._procstats is None:<EOL><INDENT>self._procstats = self._sysinfo.getProcessStats()<EOL><DEDENT>if self._procstats:<EOL><INDENT>for field in self.getGraphFieldList('<STR_LIT>'):<EOL><INDENT>self.setGraphVal('<STR_LIT>', field, <EOL>self._procstats[field])<EOL><DEDENT><DEDENT><DEDENT>if self.hasGraph('<STR_LIT>'):<EOL><INDENT>if self._vmstats is None:<EOL><INDENT>self._vmstats = self._sysinfo.getVMstats()<EOL><DEDENT>if self._vmstats:<EOL><INDENT>self.setGraphVal('<STR_LIT>', '<STR_LIT>', <EOL>self._vmstats['<STR_LIT>'])<EOL>self.setGraphVal('<STR_LIT>', '<STR_LIT>', <EOL>self._vmstats['<STR_LIT>'])<EOL><DEDENT><DEDENT>if self.hasGraph('<STR_LIT>'):<EOL><INDENT>if self._vmstats is None:<EOL><INDENT>self._vmstats = self._sysinfo.getVMstats()<EOL><DEDENT>if self._vmstats:<EOL><INDENT>self.setGraphVal('<STR_LIT>', '<STR_LIT>', <EOL>self._vmstats['<STR_LIT>'])<EOL>self.setGraphVal('<STR_LIT>', '<STR_LIT>', <EOL>self._vmstats['<STR_LIT>'])<EOL><DEDENT><DEDENT>
Retrieve values for graphs.