Fix potention div vy zero

pull/2112/head
Isaac Connor 2018-05-22 15:52:12 -04:00
parent dc5ccd04ef
commit 13e11a1e7f
1 changed files with 1 additions and 1 deletions

View File

@ -602,7 +602,7 @@ Debug("Files to move @files");
die "Unable to add key for $filename";
}
my $duration = time - $starttime;
Debug("PUT to S3 " . Number::Bytes::Human::format_bytes($size) . " in $duration seconds = " . Number::Bytes::Human::format_bytes($size/$duration) . "/sec");
Debug("PUT to S3 " . Number::Bytes::Human::format_bytes($size) . " in $duration seconds = " . Number::Bytes::Human::format_bytes($duration?$size/$duration:$size) . '/sec');
} # end foreach file.
$moved = 1;