Skip to content

Commit

Permalink
Fix to return type for system info
Browse files Browse the repository at this point in the history
  • Loading branch information
iliajie committed Aug 26, 2024
1 parent 3b0f751 commit d67139f
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 8 deletions.
14 changes: 9 additions & 5 deletions mailbox/system_info.pl
Original file line number Diff line number Diff line change
Expand Up @@ -13,23 +13,26 @@ sub list_system_info
my @table;
my $table = { 'type' => 'table',
'desc' => $text{'right_header'},
'priority' => 10,
'priority' => 10,
'table' => \@table };

# Hostname
push(@table, { 'desc' => $text{'right_host'},
'value' => &get_display_hostname() });
'value' => &get_display_hostname(),
'type' => 'host' });

# Operating system
push(@table, { 'desc' => $text{'right_os'},
'value' => $gconfig{'os_version'} eq '*' ?
$gconfig{'real_os_type'} :
$gconfig{'real_os_type'}.' '.$gconfig{'real_os_version'}
$gconfig{'real_os_type'}.' '.$gconfig{'real_os_version'},
'type' => 'os'
});

# Usermin version
push(@table, { 'desc' => $text{'right_usermin'},
'value' => &get_webmin_version() });
'value' => &get_webmin_version(),
'type' => 'ver' });

# System time
my $tm = localtime(time());
Expand All @@ -38,7 +41,8 @@ sub list_system_info
$tm = make_date(time(), {get => 'complete'});
}
push(@table, { 'desc' => $text{'right_time'},
'value' => $tm });
'value' => $tm,
'type' => 'time' });

return ($table);
}
Expand Down
2 changes: 1 addition & 1 deletion mailbox/ulang/de
Original file line number Diff line number Diff line change
Expand Up @@ -259,5 +259,5 @@ allow_eaddr='$1' ist keine gültige Mail-Adresse
right_header=System Information
right_host=System Hostname
right_os=Betriebssystem
right_usermin=Usermin Version
right_usermin=Usermin version
right_time=Systemzeit
2 changes: 1 addition & 1 deletion mailbox/ulang/en
Original file line number Diff line number Diff line change
Expand Up @@ -287,5 +287,5 @@ allow_eaddr='$1' is not a valid email address
right_header=System Information
right_host=System hostname
right_os=Operating system
right_usermin=Usermin Version
right_usermin=Usermin version
right_time=Time on system
2 changes: 1 addition & 1 deletion mailbox/ulang/ms.auto
Original file line number Diff line number Diff line change
Expand Up @@ -260,5 +260,5 @@ allow_eaddr='$1' bukan alamat e-mel yang sah
right_header=Maklumat sistem
right_host=Nama hos sistem
right_os=Sistem operasi
right_usermin=Usermin Version
right_usermin=Usermin version
right_time=Masa pada sistem

0 comments on commit d67139f

Please sign in to comment.