diff options
author | Jim MacArthur <jim.macarthur@codethink.co.uk> | 2018-03-07 11:41:14 +0000 |
---|---|---|
committer | Jim MacArthur <jim.macarthur@codethink.co.uk> | 2018-03-07 12:36:19 +0000 |
commit | 9f6ced459db670c042c6fc1a131d0ee952a86801 (patch) | |
tree | deeb5238b5211a787cfcc0fadd885bc31ad539b8 | |
parent | 7fdddf30992efb9f2a88686638f997208b01d0f2 (diff) | |
download | buildstream-9f6ced459db670c042c6fc1a131d0ee952a86801.tar.gz |
status.py: Restore brackets to time in job display area
-rw-r--r-- | buildstream/_frontend/status.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/buildstream/_frontend/status.py b/buildstream/_frontend/status.py index d8739b20b..82e9e2d46 100644 --- a/buildstream/_frontend/status.py +++ b/buildstream/_frontend/status.py @@ -338,7 +338,7 @@ class StatusJob(): self.time_code = TimeCode(content_profile, format_profile) # Calculate the size needed to display - self.size = 10 # Size of time code + self.size = 10 # Size of time code with brackets self.size += len(action_name) self.size += len(element.name) self.size += 3 # '[' + ':' + ']' @@ -352,7 +352,9 @@ class StatusJob(): # elapsed (datetime): The session elapsed time offset # def render(self, padding, elapsed): - text = self.time_code.render_time(elapsed - self.offset) + text = self.format_profile.fmt('[') + \ + self.time_code.render_time(elapsed - self.offset) + \ + self.format_profile.fmt(']') # Add padding after the display name, before terminating ']' name = self.element.name + (' ' * padding) |