Skip to content

Commit

Permalink
change wait to happen before broadcast if we need to throttle
Browse files Browse the repository at this point in the history
  • Loading branch information
donald committed Jun 21, 2016
1 parent 7c7dcc6 commit c1c0896
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clusterd
Original file line number Diff line number Diff line change
Expand Up @@ -369,8 +369,8 @@ sub push_amd_tar {
my $data;
defined $fh->sysread($data,1024) or return warn "$filename: $!\n";
# warn "send bytes $pos to ",$pos+length($data),"\n";
++$i % $BC_RATE or sleep 1;
udp_broadcast_message($donald_s,'amdtardata',$st,$pos,$data,$digest);
++$i % $BC_RATE or sleep 1;
}
}

Expand Down

0 comments on commit c1c0896

Please sign in to comment.