コード例 #1
0
ファイル: MonitorManager.py プロジェクト: apiaohust/procagent
 def run(self):
     c = 0
     while True:
         poll_info = self._poll()
         content = time.asctime(time.localtime()) + '\n'
         for item in poll_info:
             content += '++++%s: %s\n' %(item, str(poll_info[item]))
         content += '----------------------------\n\n'
         util.append_file(content, MonitorManager._logfile)
         time.sleep(MonitorManager._intvl)
         c = c + 1
コード例 #2
0
ファイル: MonitorManager.py プロジェクト: yjLiInSky/procagent
 def run(self):
     c = 0
     while True:
         poll_info = self._poll()
         content = time.asctime(time.localtime()) + '\n'
         for item in poll_info:
             content += '++++%s: %s\n' % (item, str(poll_info[item]))
         content += '----------------------------\n\n'
         util.append_file(content, MonitorManager._logfile)
         time.sleep(MonitorManager._intvl)
         c = c + 1
コード例 #3
0
ファイル: metasyncAPI.py プロジェクト: dstarikov/metavault
 def append_history(self, hv):
     util.append_file(self.path_head_history, hv + "\n")
コード例 #4
0
ファイル: metasyncAPI.py プロジェクト: UWNetworksLab/metasync
 def append_history(self, hv):
     util.append_file(self.path_head_history, hv+"\n")