Skip to content

Commit

Permalink
Fix ./pants server output
Browse files Browse the repository at this point in the history
- Fix floating point millis in run name, which was breaking the `./pants server` output

good:
  pants_run_2015_04_11_15_55_57_967
bad:
  pants_run_2015_04_11_15_57_16_270.554931641

Testing Done:
verified that the server reports logs

Reviewed at https://rbcommons.com/s/twitter/r/2067/
  • Loading branch information
stuhood authored and Stu Hood committed Apr 11, 2015
1 parent 8ae1ae8 commit af513ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/python/pants/goal/run_tracker.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def __init__(self,
cmd_line = ' '.join(['./pants'] + sys.argv[1:])

# run_id is safe for use in paths.
millis = (self.run_timestamp * 1000) % 1000
millis = int((self.run_timestamp * 1000) % 1000)
run_id = 'pants_run_{}_{}'.format(
time.strftime('%Y_%m_%d_%H_%M_%S', time.localtime(self.run_timestamp)), millis)

Expand Down

0 comments on commit af513ca

Please sign in to comment.