system restarted last night, not sure why yet

This commit is contained in:
Your Name 2017-04-16 12:40:28 -04:00
parent 01623c4a76
commit 82c221e8be
3 changed files with 2 additions and 2 deletions

Binary file not shown.

Binary file not shown.

View file

@ -15,7 +15,7 @@ my $cache = retrieve $ARGV[0];
my $first_count =()= grep {exists $cache->{jobstatus}{$_}{tested}} keys $cache->{jobstatus}->%*;
my $dists = 0+$cache->{modules}->@*;
my $dists =()= $cache->{modules}->@*;
while (1) {
sleep(2);
@ -25,7 +25,7 @@ while (1) {
my $rate = ($count-$first_count)/(time()-$start_time);
my $tocomplete = ($rate == 0? sub{-1} : sub{($dists-$count)/$rate})->();
my $final_dt = $start_dt->clone()->add(seconds => $tocomplete);
my $final_dt = DateTime->now(time_zone => 'America/Los_Angeles')->add(seconds => $tocomplete);
printf "%d/%d [%02.2f%%] %0.2f/min %s %0.2f\n", $count, $dists, 100*$count/$dists, $rate*60, $final_dt->iso8601, $tocomplete;
};