On Fri, Mar 27, 2015 at 10:37 PM, Vincent Guittot vincent.guittot@linaro.org wrote:
On 25 March 2015 at 03:39, pi-cheng.chen pi-cheng.chen@linaro.org wrote:
[snip]
- shutil.move(tmp.name, outfile)
the script is working with this change
+if __name__ == '__main__':
- parser = argparse.ArgumentParser()
- parser.add_argument('-f', '--file', dest='infile', default='', help='input json filename')
- parser.add_argument('-o', '--out', dest='outfile', default='workload.json', help='output json filename');
- parser.add_argument('--instance', default=0, type=int, help='number of thread instance')
- parser.add_argument('--period', default=0, type=int, help='period of each thread/phase (ms)')
- parser.add_argument('--run', default=0, type=int, help='run time of each thread/phase (ms)')
- parser.add_argument('--sleep', default=0, type=int, help='sleep time of each thread/phase (ms)')
why have you used ms whereas us is used in the json file ?
You are right. Using us instead of ms is more proper here. I'll do it. Thanks.