Changeset 287
- Timestamp:
- 09/19/11 16:04:09 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Puzzlebox/Synapse/Interface.py
r286 r287 10 10 11 11 __changelog__ = """\ 12 Last Update: 2011.0 8.2312 Last Update: 2011.09.19 13 13 """ 14 14 … … 1022 1022 # second until there is a gap between 1 and 2 seconds, in which case 1023 1023 # produce a final duplicate packet at the mid-point between the packets 1024 1025 if self.DEBUG: 1026 print "INFO: Scrubbing Data" 1024 1027 1025 1028 last_time = None … … 1033 1036 1034 1037 localtime = key 1038 1039 if csv[key]['Attention'] == '': 1040 continue 1035 1041 1036 1042 if last_time == None: … … 1041 1047 else: 1042 1048 1043 time_difference = last_time - localtime 1049 time_difference = localtime - last_time 1050 1051 if self.DEBUG: 1052 print "time_difference:", 1053 print time_difference 1044 1054 1045 1055 if time_difference <= 1: … … 1054 1064 if time_difference >= 2: 1055 1065 1056 new_time = l ocaltime + 11066 new_time = last_time + 1 1057 1067 1058 1068
Note: See TracChangeset
for help on using the changeset viewer.