Skip to content

Commit

Permalink
use MiB to be consistent with dashboard...
Browse files Browse the repository at this point in the history
... and the rest of the universe
  • Loading branch information
anarcat committed Sep 22, 2018
1 parent 0e736b6 commit f96ea61
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bot/job_status_generation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def to_status
elsif pending?
rep << "In queue."
elsif in_progress?
rep << "In progress. Downloaded #{mb_downloaded.round(2)} MB, #{error_count.to_i} errors, #{item_count} queued."
rep << "In progress. Downloaded #{mb_downloaded.round(2)} MiB, #{error_count.to_i} errors, #{item_count} queued."
rep << "#{concurrency.to_i} workers, delay: #{delay_min.to_f}, #{delay_max.to_f} ms."
end

Expand All @@ -33,7 +33,7 @@ def to_status
private

def mb_downloaded
bytes_downloaded.to_f / (1000 * 1000)
bytes_downloaded.to_f / (1024 * 1024)
end

def item_count
Expand Down

0 comments on commit f96ea61

Please sign in to comment.