commit 7ee98c25b29cb6107f6b1385e54e4f9b17c6ad7f
parent d22384b23f3ae30a91a388a997acc6ab16a8f74d
Author: Kyle Milz <kyle@getaddrinfo.net>
Date: Thu, 2 Apr 2015 19:07:24 -0600
product_scraper: change time format in email output
Diffstat:
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/product_scraper b/product_scraper
@@ -141,8 +141,9 @@ sub mem_exp_scrape_class
}
my $ok = $new + $old;
- print $log sprintf("%-15s %7s %6.1f%% %6i %3i %7is\n", $type,
- "$ok/$total", $ok * 100.0 / $total, $err, $new, time - $start);
+ my $time_str = sprintf("%dh %dm %ds", (gmtime(time - $start))[2, 1, 0]);
+ print $log sprintf("%-15s %7s %6.1f%% %6i %3i %s\n", $type,
+ "$ok/$total", $ok * 100.0 / $total, $err, $new, $time_str);
}
#