+2013-10-28 Andrew Ruthven
+ Guard against zero total disk space, this affected Werner Mahr.
+
2013-10-27 Andrew Ruthven
Handle the handling in POD in Perl 5.18. Force the return code
=item lines to be handled correctly.
return 'unknown';
}
+ # Guard against zero disk space.
+ $total = normalise_disk_space($total);
+ if ($total == 0) {
+ warn "Total disk space is 0 MB, I can't use that to calculate a percentage!\n";
+ return 'unknown';
+ }
+
my $percent = sprintf("%.1f",
- normalise_disk_space($used) / normalise_disk_space($total) * 100);
+ normalise_disk_space($used) / $total * 100);
if ($percent >= $c->{'disk_space_warn'}) {
$exit_value ||= 1;
mythtv-status (0.10.4) unstable; urgency=low
- * New upstream release (Closes: #724166, #709377).
+ * New upstream release (Closes: #724166, #709377, #709449).
* Remove an extraneous hypen in our postinst (Cloases: #704436)
Thank you Francois Marier for the patch.
- -- Andrew Ruthven <andrew@etc.gen.nz> Sun, 27 Oct 2013 23:23:08 +1300
+ -- Andrew Ruthven <andrew@etc.gen.nz> Mon, 28 Oct 2013 07:39:55 +1300
mythtv-status (0.10.3) unstable; urgency=low