Commit eef59cc6 authored by Mike Hibler's avatar Mike Hibler

Tweak the -D output a little.

parent 7634e619
......@@ -411,24 +411,39 @@ sub showsitevars()
print " locked-down";
}
print " after expiration";
if ($extend != 0) {
if ($grace != 0) {
print " plus";
if ($maxext == 0) {
print " an unlimited number of";
} else {
print " up to $maxext";
}
if ($extend < 1) {
$v = sprintf("%.1f", $extend * 24);
print " $v hour";
if ($grace < 1) {
$v = sprintf("%.1f", $grace * 24);
print " $v hours";
} else {
$v = sprintf("%.1f", $extend);
print " $v day";
$v = sprintf("%.1f", $grace);
print " $v days";
}
print " extensions";
print " grace period";
}
}
print ".\n";
print " Extensions:";
if ($extend != 0) {
print " allows";
if ($maxext == 0) {
print " an unlimited number of";
} else {
print " up to $maxext";
}
if ($extend < 1) {
$v = sprintf("%.1f", $extend * 24);
print " $v hour";
} else {
$v = sprintf("%.1f", $extend);
print " $v day";
}
print " extensions during grace period";
} else {
print " none";
}
print ".\n";
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment