mirror of
https://github.com/webmin/webmin.git
synced 2026-05-26 16:10:29 +01:00
Supress error output:
This commit is contained in:
@@ -65,7 +65,7 @@ sub get_sensors_values
|
||||
{
|
||||
if (!defined(@get_sensors_cache)) {
|
||||
local @rv;
|
||||
open(SENS, "sensors |");
|
||||
open(SENS, "sensors 2>/dev/null |");
|
||||
while(<SENS>) {
|
||||
if (/^([^:]+):\s+([0-9\.\+\-]+)\s*(\S+)\s+\(min\s+=\s+([0-9\.\+\-]+)\s*(\S+),\s+max\s+=\s+([0-9\.\+\-]+)/) {
|
||||
# Value with min and max
|
||||
|
||||
@@ -43,7 +43,6 @@ else {
|
||||
local $info = &backquote_command("openssl x509 -in ".quotemeta($certfile).
|
||||
" -inform PEM -text -noout -enddate ".
|
||||
" </dev/null 2>&1");
|
||||
print STDERR "info=$info\n";
|
||||
|
||||
# Check dates
|
||||
&foreign_require("mailboxes", "mailboxes-lib.pl");
|
||||
@@ -55,7 +54,6 @@ if ($info =~ /Not\s+After\s*:\s*(.*)/i) {
|
||||
$end = &mailboxes::parse_mail_date("$1");
|
||||
}
|
||||
local $now = time();
|
||||
print STDERR "start=$start end=$end now=$now\n";
|
||||
if ($start && $now < $start) {
|
||||
# Too new?!
|
||||
$desc = &text('sslcert_estart', &make_date($start));
|
||||
|
||||
Reference in New Issue
Block a user