Kouhei Sutou 2019-03-19 14:19:34 +0900 (Tue, 19 Mar 2019) Revision: 3868aa7d998f37dae94684eff3555b2cde48b09c https://github.com/groonga/groonga/commit/3868aa7d998f37dae94684eff3555b2cde48b09c Message: index_column_diff: improve remained time Modified files: lib/index_column.c Modified: lib/index_column.c (+1 -1) =================================================================== --- lib/index_column.c 2019-03-19 14:16:17 +0900 (e8d8a9b24) +++ lib/index_column.c 2019-03-19 14:19:34 +0900 (e6149c3b5) @@ -471,7 +471,7 @@ grn_index_column_diff_compute(grn_ctx *ctx, const double throughput = progress_interval / current_interval_seconds; const double remained_seconds = - elapsed_seconds * ((double)n_records / (double)i_record); + elapsed_seconds + ((n_records - i_record) / throughput); const char *elapsed_unit = NULL; const double elapsed_time = grn_index_column_diff_format_time(ctx, elapsed_seconds, &elapsed_unit); -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20190319/76b1021b/attachment.html>