Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request - show reconstruction-percentage #59

Open
Rad3d21 opened this issue Feb 28, 2022 · 0 comments
Open

Feature request - show reconstruction-percentage #59

Rad3d21 opened this issue Feb 28, 2022 · 0 comments

Comments

@Rad3d21
Copy link

Rad3d21 commented Feb 28, 2022

Maybe others like this too and maybe I'm overlooking some issues that this could cause.
My feature request was:
Add rebuild percentage to check_cdot_rebuild to be able to track progress.
I did this quick & possibly dirty hack in patch file format:
--- check_cdot_rebuild.pl 2022-02-28 11:17:27.142714000 +0100
+++ check_cdot_rebuild_percent.pl 2022-02-28 13:09:22.043997000 +0100
@@ -78,10 +78,12 @@
foreach my $rg (@rgs) {

             my $rg_reconstruct = $rg->child_get_string( "is-reconstructing" );
  •            my $rg_reconstruct_percent = $rg->child_get_string( "reconstruction-percentage" );
    
               if ($rg_reconstruct eq "true") {
    
  •                unless (grep(/$aggr_name/, @failed_aggrs)) {
    
  •                    push( @failed_aggrs, $aggr_name );
    
  •                    push( @failed_aggrs, $aggr_name.":".$rg_reconstruct_percent );
                   }
               }
           }
    
@Rad3d21 Rad3d21 changed the title Feature request Feature request - show reconstruction-percentage Feb 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant