Skip to content

Commit

Permalink
Trying to make the process faster
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanwills-optus committed Jan 31, 2020
1 parent a1404d4 commit ebc3fe1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions bin/group-git
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ use Group::Git;
use Config::Any;
use Term::ANSIColor qw/colored/;
use File::chdir;
use Time::HiRes qw/sleep/;

our $VERSION = version->new('0.7.2');
my ($name) = $PROGRAM_NAME =~ m{^.*/(.*?)$}mxs;
Expand Down Expand Up @@ -166,8 +167,8 @@ sub main {
process_thread($thread, $opt, $outfh);
}
}
if ($count++ % 10 == 0) {
sleep 1;
if ($count++ % 100 == 0) {
sleep 0.5;
}
else {
warn "There are currently " . @threads . " threads (of $count started)\n" if $opt->verbose;
Expand Down

0 comments on commit ebc3fe1

Please sign in to comment.