Changeset 13805
- Timestamp:
- 05/21/12 16:14:18 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fact/tools/PyDimCtrl/fpydim.py
r13793 r13805 22 22 """ sets name of instance to name of server, all uppercase 23 23 """ 24 self.list_of_states = [] 24 25 self.name = name.upper() 25 26 self.print_state = False … … 89 90 except ValueError: 90 91 self.stn = None 92 93 self.last_st_change = time.time() 94 self.list_of_states.append( (self.last_st_change, self.stn) ) 95 if len(self.list_of_states) > 10000: 96 print "list_of_states too long, truncating..." 97 self.list_of_states = self.list_of_states[1000:] 91 98 if self.print_state: 92 99 print state … … 290 297 add_getter(FactDimServerClasses[-1], cmd) 291 298 299 300 292 301 # create an instace of each of the classes 293 302 # and make it globally known, i.e. known to the Python interpreter
Note:
See TracChangeset
for help on using the changeset viewer.