diff options
Diffstat (limited to 'segget/distfile.cpp')
-rw-r--r-- | segget/distfile.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/segget/distfile.cpp b/segget/distfile.cpp index ba5778d..04777f3 100644 --- a/segget/distfile.cpp +++ b/segget/distfile.cpp @@ -274,6 +274,7 @@ void Tdistfile::split_into_segments(){ segment_size=size; segments_count=1; }; + stats.segments_count+=segments_count; dn_segments = new Tsegment [segments_count]; //none downloaded yet for (uint segment_num=0; segment_num<segments_count; segment_num++){ @@ -649,6 +650,7 @@ void Tdistfile::inc_dld_segments_count(Tsegment* current_segment){ stats.inc_dld_size(current_segment->segment_size); if (++dld_segments_count==segments_count) combine_segments(); + stats.dld_segments_count++; }catch(...){ error_log("Error: distfile.cpp: inc_dld_segments_count()"); } |