Esempio n. 1
0
 def __init__(self, msgh, mgrq, myname, config):
     CalcWorker.__init__(self, msgh, mgrq, myname, config)
     self.report_intvl = 4
     self.report_threshold = 50
     #self.eh.register_timer(self.report_intvl * 1000,
     #                       TMTAGS.SEND_REPORT, True)
     self.stat_user = StatUser(self.config['start'], self.config['end'])
Esempio n. 2
0
 def __init__(self, msgh, mgrq, myname, config):
     CalcWorker.__init__(self, msgh, mgrq, myname, config)
     self.report_intvl = 10
     self.eh.register_timer(self.report_intvl * 1000,
                            TMTAGS.SEND_REPORT, True)
     self.data = {}
Esempio n. 3
0
 def __init__(self, msgh, mgrq, myname, config):
     CalcWorker.__init__(self, msgh, mgrq, myname, config)
     self.report_intvl = 4
     self.report_threshold= 100
     self.report_counter = 0
     self.stat_user = StatUser(self.config['start'], self.config['end'])