Skip to content

Commit

Permalink
Respond to review comment
Browse files Browse the repository at this point in the history
  • Loading branch information
ehankland committed Jun 17, 2015
1 parent 56f2d55 commit 51599c1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions perfkitbenchmarker/virtual_machine.py
Original file line number Diff line number Diff line change
Expand Up @@ -514,10 +514,10 @@ def TimeToBoot(self):
"""Gets the time it took to boot this VM.
Returns:
Boot time (in seconds), or None if the boot is incomplete.
Boot time (in seconds).
"""
if not self.bootable_time or not self.create_start_time:
return None
assert self.bootable_time, 'VM must have booted to get boot time.'
assert self.create_start_time, 'VM must be created to get boot time.'
assert self.bootable_time >= self.create_start_time
return self.bootable_time - self.create_start_time

Expand Down

0 comments on commit 51599c1

Please sign in to comment.