From: Andrew Ruthven Date: Thu, 29 Nov 2007 19:16:25 +0000 (+1300) Subject: Allow setting the disk space warning threshold from the command line. X-Git-Tag: 0.6.0~24 X-Git-Url: http://git.etc.gen.nz/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=33063733073a9710a50391f09ec697f829a38e76;p=mythtv-status.git Allow setting the disk space warning threshold from the command line. --- diff --git a/bin/mythtv-status b/bin/mythtv-status index 6d57c8a..cc674fc 100755 --- a/bin/mythtv-status +++ b/bin/mythtv-status @@ -42,6 +42,7 @@ GetOptions( 'v|version' => \&print_version, 'email=s@' => \@email, 'email-only-on-conflict' => \$email_only_on_conflict, + 'disk-space-warn=i' => \$disk_space_warn, 'status!' => \$display{'Status'}, 'encoders!' => \$display{'Encoders'}, @@ -606,6 +607,12 @@ Use colour when showing the status of the encoder(s). Display the description for the scheduled recordings. +=item B<--disk-space-warn> + +The threshold (in percent) of used disk space that we should show +the disk space in red (if using colour) or send an email if we're +in email mode with email only on warnings. + =item B<-e, --episode> Display the episode (subtitle) for the scheduled recordings.