247 |
} |
} |
248 |
|
|
249 |
$t_merge = time - $t_merge; |
$t_merge = time - $t_merge; |
250 |
printf STDERR "%d in %.4fs %.2f/s local %.1f%% %d/%d\n", $tick, $t_merge, $tick / $t_merge, $local * 100 / $tick, $local, $remote; |
my $digests = $local + $remote; |
251 |
|
printf STDERR "\n[$port] merge %d in %.4fs %.2f/s digests local: %.1f%% %d/%d\n", $tick, $t_merge, $digests / $t_merge, $local * 100 / $digests, $local, $remote; |
252 |
push @reports, [ "$tick merged $from_node", $t_merge, $tick / $t_merge ]; |
push @reports, [ "$tick merged $from_node", $t_merge, $tick / $t_merge ]; |
253 |
|
|
254 |
warn "[$port] missing ", dump $missing if $missing; |
warn "[$port] missing ", dump $missing if $missing; |
355 |
my $pid_path = "/tmp/sack.$port.pid"; |
my $pid_path = "/tmp/sack.$port.pid"; |
356 |
if ( -e $pid_path ) { |
if ( -e $pid_path ) { |
357 |
my $pid = read_file $pid_path; |
my $pid = read_file $pid_path; |
358 |
kill 9, $pid && warn "[$port] kill old $pid"; |
kill 9, $pid && warn "[$port] kill old $pid\n"; |
359 |
} |
} |
360 |
write_file $pid_path, $$; |
write_file $pid_path, $$; |
361 |
|
|