def getPeerStats(self):
info_dict = {}<EOL>output = util.exec_command([ntpqCmd, '<STR_LIT>', '<STR_LIT:-c>', '<STR_LIT>'])<EOL>for line in output.splitlines():<EOL><INDENT>mobj = re.match('<STR_LIT>', line)<EOL>if mobj:<EOL><INDENT>info_dict['<STR_LIT>'] = mobj.group(<NUM_LIT:1>)<EOL>cols = line.split()<EOL>info_dict['<STR_LIT>'] = int(cols[<NUM_LIT:2>])<EOL>info_dict['<STR_LIT>'] = float(cols[<NUM_LIT:7>]) / <NUM_LIT><EOL>info_dict['<STR_LIT>'] = float(cols[<NUM_LIT:8>]) / <NUM_LIT><EOL>info_dict['<STR_LIT>'] = float(cols[<NUM_LIT:9>]) / <NUM_LIT><EOL>return info_dict<EOL><DEDENT><DEDENT>else:<EOL><INDENT>raise Exception("<STR_LIT>" % ntpqCmd)<EOL><DEDENT>return info_dict<EOL>
Get NTP Peer Stats for localhost by querying local NTP Server.

        @return: Dictionary of NTP stats converted to seconds.