Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FormerLurker/ArcWelderLib.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFormerLurker <hochgebe@gmail.com>2020-11-16 18:00:56 +0300
committerFormerLurker <hochgebe@gmail.com>2020-11-16 18:00:56 +0300
commit0f57a03f82a555a9b6d3afdfb133457c72455d54 (patch)
treeb5403a38d5ecd473f727b34e48099c9e35ba320c /ArcWelder
parentb995df6e38d0185f32f06cac87e781249975b738 (diff)
Add the job guid to the py arguments and progress updates. Add additional progress data.
Diffstat (limited to 'ArcWelder')
-rw-r--r--ArcWelder/arc_welder.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/ArcWelder/arc_welder.h b/ArcWelder/arc_welder.h
index e26a1b5..5a8d9b4 100644
--- a/ArcWelder/arc_welder.h
+++ b/ArcWelder/arc_welder.h
@@ -94,6 +94,10 @@ struct source_target_segment_statistics {
int total_count_source;
int total_count_target;
int num_segment_tracking_lengths;
+
+ double get_total_count_reduction_percent() const {
+ return utilities::get_percent_change(total_count_source, total_count_target);
+ }
void update(double length, bool is_source)
{
@@ -353,7 +357,6 @@ struct arc_welder_progress {
target_file_size = 0;
compression_ratio = 0;
compression_percent = 0;
-
}
double percent_complete;
double seconds_elapsed;