Changeset 6 for trunk/lib/nanownlib/__init__.py
- Timestamp:
- 07/09/15 12:27:04 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/nanownlib/__init__.py
r5 r6 214 214 for p in packets: 215 215 key = (p['sent'],p['tcpseq'],p['tcpack'],p['payload_len']) 216 #if (key not in seen)\217 #or p['sent']==1 and (seen[key]['observed'] < p['observed'])\218 #or p['sent']==0 and (seen[key]['observed'] > p['observed']):219 if (key not in seen) or (seen[key]['observed'] > p['observed']):216 if (key not in seen)\ 217 or p['sent']==1 and (seen[key]['observed'] < p['observed'])\ 218 or p['sent']==0 and (seen[key]['observed'] > p['observed']): 219 #if (key not in seen) or (seen[key]['observed'] > p['observed']): 220 220 seen[key] = p 221 221 … … 352 352 pprint.pprint(evaluations) 353 353 354 delta_margin = 0.1 354 delta_margin = 0.15 355 355 best_strim = 0 356 356 best_rtrim = 0 … … 439 439 remaining_tm = trimean([row['packet_rtt'] for row in cursor]) 440 440 441 return (tc, tm_map[tc]-remaining_tm) 441 ret_val = (tc, tm_map[tc]-remaining_tm) 442 print("unusual_case: %s, delta: %f" % ret_val) 443 return ret_val 442 444 443 445
Note: See TracChangeset
for help on using the changeset viewer.