mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-10 02:55:55 +02:00
WUI: Make the shown uptime in the footer more beautiful.
This commit is contained in:
committed by
Michael Tremer
parent
8999627f8a
commit
70b1b5d22f
@@ -335,9 +335,14 @@ END
|
||||
}
|
||||
|
||||
sub closepage () {
|
||||
my $status = &connectionstatus();
|
||||
$uptime = `/usr/bin/uptime`;
|
||||
|
||||
my $status = &connectionstatus();
|
||||
my $uptime = `/usr/bin/uptime|cut -d \" \" -f 4-`;
|
||||
$uptime =~ s/year(s|)/$Lang::tr{'year'}/;
|
||||
$uptime =~ s/month(s|)/$Lang::tr{'month'}/;
|
||||
$uptime =~ s/day(s|)/$Lang::tr{'day'}/;
|
||||
$uptime =~ s/user(s|)/$Lang::tr{'user'}/;
|
||||
$uptime =~ s/load average/$Lang::tr{'uptime load average'}/;
|
||||
|
||||
print <<END
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -335,9 +335,14 @@ END
|
||||
}
|
||||
|
||||
sub closepage () {
|
||||
my $status = &connectionstatus();
|
||||
$uptime = `/usr/bin/uptime`;
|
||||
|
||||
my $status = &connectionstatus();
|
||||
my $uptime = `/usr/bin/uptime|cut -d \" \" -f 4-`;
|
||||
$uptime =~ s/year(s|)/$Lang::tr{'year'}/;
|
||||
$uptime =~ s/month(s|)/$Lang::tr{'month'}/;
|
||||
$uptime =~ s/day(s|)/$Lang::tr{'day'}/;
|
||||
$uptime =~ s/user(s|)/$Lang::tr{'user'}/;
|
||||
$uptime =~ s/load average/$Lang::tr{'uptime load average'}/;
|
||||
|
||||
print <<END
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1927,6 +1927,8 @@
|
||||
'upstream password' => 'Proxy-Passwort:',
|
||||
'upstream proxy host:port' => 'Vorgelagerter Proxy (hostname:port)',
|
||||
'upstream username' => 'Proxy-Benutzername:',
|
||||
'uptime' => 'Betriebszeit',
|
||||
'uptime load average' => 'Ø Systemlast',
|
||||
'uptime and users' => 'Uptime und Benutzer:',
|
||||
'url filter' => 'URL-Filter',
|
||||
'urlfilter access' => 'Zugriff',
|
||||
|
||||
@@ -1960,6 +1960,8 @@
|
||||
'upstream password' => 'Upstream password:',
|
||||
'upstream proxy host:port' => 'Upstream proxy (host:port)',
|
||||
'upstream username' => 'Upstream username:',
|
||||
'uptime' => 'Uptime',
|
||||
'uptime load average' => '<27> Load average',
|
||||
'uptime and users' => 'Uptime and users:',
|
||||
'url filter' => 'Content Filter',
|
||||
'urlfilter access' => 'Access',
|
||||
|
||||
Reference in New Issue
Block a user