YUKI Hiroshi
null+****@clear*****
Fri Apr 17 16:16:54 JST 2015
YUKI Hiroshi 2015-04-17 16:16:54 +0900 (Fri, 17 Apr 2015) New Revision: daf77112277264ea7876d2df514109ee4a423d4f https://github.com/droonga/droonga-engine/commit/daf77112277264ea7876d2df514109ee4a423d4f Message: Report progress percentage correctly Modified files: lib/droonga/plugins/system/absorb_data.rb Modified: lib/droonga/plugins/system/absorb_data.rb (+1 -1) =================================================================== --- lib/droonga/plugins/system/absorb_data.rb 2015-04-17 16:12:00 +0900 (d81ee3f) +++ lib/droonga/plugins/system/absorb_data.rb 2015-04-17 16:16:54 +0900 (d515b35) @@ -160,7 +160,7 @@ module Droonga if @total_n_source_records.nil? or @total_n_source_records.zero? return 0 end - progress = @n_processed_messages / @total_n_source_records + progress = @n_processed_messages.to_f / @total_n_source_records [(progress * 100).to_i, 100].min end -------------- next part -------------- HTML����������������������������...다운로드