Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
20 lines (15 sloc) 294 Bytes
#!/usr/bin/perl
use Term::Shelly;
$sh = Term::Shelly->new();
$time = time();
$end = time() + 15;
$count = 0;
while (1) {
$sh->do_one_loop();
if ($time < time()) {
$count++;
$time = time();
$sh->prompt(sprintf("Download: %.2f", $count / 15) . "% >");
exit if ($time == $end);
}
}
Jump to Line
Something went wrong with that request. Please try again.