Show field for drive temp collection
authorJamie Cameron <jcameron@webmin.com>
Wed, 5 Oct 2011 21:03:24 +0000 (14:03 -0700)
committerJamie Cameron <jcameron@webmin.com>
Wed, 5 Oct 2011 21:03:24 +0000 (14:03 -0700)
https://sourceforge.net/tracker/index.php?func=detail&aid=3416329&group_id=17457&atid=117457#

webmin/change_status.cgi
webmin/edit_status.cgi
webmin/lang/en

index 396618b..c638150 100755 (executable)
@@ -16,8 +16,9 @@ else {
        $system_status::config{'collect_interval'} = $in{'interval'};
        }
 
-# Save package collection option
+# Save collection options
 $system_status::config{'collect_pkgs'} = $in{'pkgs'};
+$system_status::config{'collect_notemp'} = !$in{'temp'};
 
 &lock_file($system_status::module_config_file);
 &save_module_config(\%system_status::config, 'system-status');
index 69bcc07..fc65dc6 100755 (executable)
@@ -19,6 +19,10 @@ print &ui_table_row($text{'status_interval'},
 print &ui_table_row($text{'status_pkgs'},
        &ui_yesno_radio("pkgs", $system_status::config{'collect_pkgs'}));
 
+# Collect drive temps?
+print &ui_table_row($text{'status_temp'},
+       &ui_yesno_radio("temp", !$system_status::config{'collect_notemp'}));
+
 print &ui_table_end();
 print &ui_form_end([ [ "save", $text{'save'} ] ]);
 
index 75247c1..e1607ba 100644 (file)
@@ -919,6 +919,7 @@ status_interval1=Never
 status_interval0=Every
 status_mins=minutes
 status_pkgs=Collect available package updates?
+status_temp=Collect drive temperatures?
 
 sendmail_title=Sending Email
 sendmail_desc=This page controls how Webmin sends email, such as from scheduled backups or background monitoring. It also effects email sent using the Read User Mail module.