Ignore:
Timestamp:
07/09/15 12:27:04 (9 years ago)
Author:
tim
Message:

.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/nanownlib/__init__.py

    r5 r6  
    214214    for p in packets:
    215215        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']):
    220220            seen[key] = p
    221221   
     
    352352    pprint.pprint(evaluations)
    353353
    354     delta_margin = 0.1
     354    delta_margin = 0.15
    355355    best_strim = 0
    356356    best_rtrim = 0
     
    439439    remaining_tm = trimean([row['packet_rtt'] for row in cursor])
    440440
    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
    442444
    443445
Note: See TracChangeset for help on using the changeset viewer.