6F3IODIRKXEZDBNSFT6XNI6VO34LMTEWQOOKJYXJ3Q3WLN3BG56AC
sub renderDuration {
my ($build) = @_;
my $duration = $build->stoptime - $build->starttime;
my $res = "";
if ($duration >= 24*60*60) {
$res .= ($duration / (24*60*60)) . "d";
}
if ($duration >= 60*60) {
$res .= (($duration / (60*60)) % 24) . "h";
}
if ($duration >= 60) {
$res .= (($duration / 60) % 60) . "m";
}
$res .= ($duration % 60) . "s";
return $res;
}