Update CHANGELOG + Style
This commit is contained in:
parent
7837221773
commit
0b28910b77
|
@ -9,6 +9,8 @@
|
|||
not working properly. [GH-778]
|
||||
- `VAGRANT_CWD` environmental variable can be used to set the CWD to
|
||||
something other than the current directory.
|
||||
- Downloading boxes from servers that don't send a content-length
|
||||
now works properly. [GH-788]
|
||||
|
||||
## 1.0.0 (March 6, 2012)
|
||||
|
||||
|
|
|
@ -78,7 +78,7 @@ module Vagrant
|
|||
# to the UI. Send `clear_line` to clear the line to show
|
||||
# a continuous progress meter.
|
||||
def report_progress(progress, total, show_parts=true)
|
||||
if total and not total == 0
|
||||
if total && total > 0
|
||||
percent = (progress.to_f / total.to_f) * 100
|
||||
line = "Progress: #{percent.to_i}%"
|
||||
line << " (#{progress} / #{total})" if show_parts
|
||||
|
|
Loading…
Reference in New Issue