Update CHANGELOG + Style

This commit is contained in:
Mitchell Hashimoto 2012-03-09 10:18:40 -08:00
parent 7837221773
commit 0b28910b77
2 changed files with 3 additions and 1 deletions

View File

@ -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)

View File

@ -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