Skip to content

Commit

Permalink
progress: disable progress messages with --quiet
Browse files Browse the repository at this point in the history
Signed-off-by: Adam Moody <moody20@llnl.gov>
  • Loading branch information
adammoody committed Jun 21, 2019
1 parent 8da0128 commit 3742e1c
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/dchmod/dchmod.c
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,9 @@ int main(int argc, char** argv)
break;
case 'q':
mfu_debug_level = MFU_LOG_NONE;
/* since process won't be printed in quiet anyway,
* disable the algorithm to save some overhead */
mfu_progress_timeout = 0;
break;
case 'h':
usage = 1;
Expand Down
3 changes: 3 additions & 0 deletions src/dcmp/dcmp.c
Original file line number Diff line number Diff line change
Expand Up @@ -2107,6 +2107,9 @@ int main(int argc, char **argv)
case 'q':
options.quiet++;
mfu_debug_level = MFU_LOG_NONE;
/* since process won't be printed in quiet anyway,
* disable the algorithm to save some overhead */
mfu_progress_timeout = 0;
break;
case 'l':
options.lite++;
Expand Down
3 changes: 3 additions & 0 deletions src/dcp/dcp.c
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,9 @@ int main(int argc, char** argv)
break;
case 'q':
mfu_debug_level = MFU_LOG_NONE;
/* since process won't be printed in quiet anyway,
* disable the algorithm to save some overhead */
mfu_progress_timeout = 0;
break;
case 'h':
usage = 1;
Expand Down
3 changes: 3 additions & 0 deletions src/dreln/dreln.c
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,9 @@ int main (int argc, char* argv[])
break;
case 'q':
mfu_debug_level = MFU_LOG_NONE;
/* since process won't be printed in quiet anyway,
* disable the algorithm to save some overhead */
mfu_progress_timeout = 0;
break;
case 'h':
usage = 1;
Expand Down
3 changes: 3 additions & 0 deletions src/drm/drm.c
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,9 @@ int main(int argc, char** argv)
break;
case 'q':
mfu_debug_level = MFU_LOG_NONE;
/* since process won't be printed in quiet anyway,
* disable the algorithm to save some overhead */
mfu_progress_timeout = 0;
break;
case 'h':
usage = 1;
Expand Down
3 changes: 3 additions & 0 deletions src/dstripe/dstripe.c
Original file line number Diff line number Diff line change
Expand Up @@ -467,6 +467,9 @@ int main(int argc, char* argv[])
break;
case 'q':
mfu_debug_level = MFU_LOG_NONE;
/* since process won't be printed in quiet anyway,
* disable the algorithm to save some overhead */
mfu_progress_timeout = 0;
break;
case 'h':
/* display usage */
Expand Down
3 changes: 3 additions & 0 deletions src/dsync/dsync.c
Original file line number Diff line number Diff line change
Expand Up @@ -2875,6 +2875,9 @@ int main(int argc, char **argv)
case 'q':
options.quiet++;
mfu_debug_level = MFU_LOG_NONE;
/* since process won't be printed in quiet anyway,
* disable the algorithm to save some overhead */
mfu_progress_timeout = 0;
break;
case 'h':
case '?':
Expand Down

0 comments on commit 3742e1c

Please sign in to comment.