]> git.etc.gen.nz Git - mythtv-status.git/commitdiff
Allow setting the disk space warning threshold from the command line.
authorAndrew Ruthven <andrew@etc.gen.nz>
Thu, 29 Nov 2007 19:16:25 +0000 (08:16 +1300)
committerAndrew Ruthven <andrew@cerberus.etc.gen.nz>
Thu, 29 Nov 2007 19:16:25 +0000 (08:16 +1300)
bin/mythtv-status

index 6d57c8a2aa22780ebfbd54e8f42e0bf85a58a8f6..cc674fc5987ec834a45d4a2dfc191015771e8b03 100755 (executable)
@@ -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.