Changeset 5


Ignore:
Timestamp:
07/08/15 16:00:10 (9 years ago)
Author:
tim
Message:

.

Location:
trunk
Files:
2 edited
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/bin/sampler

    r4 r5  
    3636parser.add_argument('-c', dest='cases', type=str, default='{"short":10000,"long":13000}',
    3737                    help='JSON representation of echo timing cases.')
    38 parser.add_argument('--tcpts', action='store_true', help='Enable TCP timestamp profiling')
     38parser.add_argument('--no-tcpts', action='store_true', help='Disbale TCP timestamp profiling')
    3939parser.add_argument('session_name', default=None,
    4040                    help='Name for the sampler session (used in output filenames)')
     
    100100
    101101meta = {'tcpts_mean':None,'tcpts_stddev':None,'tcpts_slopes':None}
    102 if options.tcpts:
     102if not options.no_tcpts:
    103103    sys.stderr.write("INFO: Probing target for TCP timestamp precision...\n")
    104104    sniffer_fp = tempfile.NamedTemporaryFile('w+t')
     
    134134
    135135sid = 0
    136 sample_types = [('train',int(num_samples*2/7)),
    137                 ('train_null',int(num_samples*3/7)+1),
    138                 ('test',int(num_samples*2/7)),
     136sample_types = [('train',int(num_samples*1/5)),
     137                ('train_null',int(num_samples*2/5)),
     138                ('test',int(num_samples*2/5)),
    139139                ('test_null',0)]
    140140report_interval = 20
  • trunk/lib/nanownlib/__init__.py

    r4 r5  
    379379        pcursor.execute("INSERT INTO analysis SELECT id,probe_id,suspect,packet_rtt,tsval_rtt FROM trim_analysis WHERE sent_trimmed=? AND rcvd_trimmed=?",
    380380                        (best_strim,best_rtrim))
     381
     382    #pcursor.execute("DELETE FROM trim_analysis")
     383    db.conn.commit()
    381384   
    382385    return count
Note: See TracChangeset for help on using the changeset viewer.