mirror of https://github.com/mikaku/Monitorix.git
substituted leading spaces to tabs in some lines of code
This commit is contained in:
parent
471c5eb547
commit
9a831bcfdc
|
@ -385,7 +385,7 @@ sub ipmi_cgi {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
my $whitespace_key_support = lc($ipmi->{whitespace_key_support} || "") eq "y" ? 1 : 0;
|
my $whitespace_key_support = lc($ipmi->{whitespace_key_support} || "") eq "y" ? 1 : 0;
|
||||||
|
|
||||||
$n = 0;
|
$n = 0;
|
||||||
|
|
|
@ -252,7 +252,7 @@ sub nut_update {
|
||||||
|
|
||||||
sub skipscale_string {
|
sub skipscale_string {
|
||||||
my ($skipscale) = @_;
|
my ($skipscale) = @_;
|
||||||
if ($skipscale) {
|
if ($skipscale) {
|
||||||
return ":skipscale";
|
return ":skipscale";
|
||||||
} else {
|
} else {
|
||||||
return "";
|
return "";
|
||||||
|
@ -262,7 +262,7 @@ sub skipscale_string {
|
||||||
sub altscaling_options {
|
sub altscaling_options {
|
||||||
my ($altscaling) = @_;
|
my ($altscaling) = @_;
|
||||||
my @scaling_options;
|
my @scaling_options;
|
||||||
if ($altscaling) {
|
if ($altscaling) {
|
||||||
push(@scaling_options, "--alt-autoscale");
|
push(@scaling_options, "--alt-autoscale");
|
||||||
push(@scaling_options, "--alt-y-grid");
|
push(@scaling_options, "--alt-y-grid");
|
||||||
}
|
}
|
||||||
|
|
|
@ -185,7 +185,7 @@ sub nvidiagpu_update {
|
||||||
if($n < scalar(@gpu_group)) {
|
if($n < scalar(@gpu_group)) {
|
||||||
my $str = trim($gpu_group[$n]);
|
my $str = trim($gpu_group[$n]);
|
||||||
|
|
||||||
open(IN, "nvidia-smi --format=csv,noheader,nounits -i $str --query-gpu=clocks.current.graphics,clocks.current.memory,utilization.gpu,utilization.memory,temperature.gpu,temperature.memory,fan.speed,pstate,power.draw,power.limit,memory.used,memory.total |");
|
open(IN, "nvidia-smi --format=csv,noheader,nounits -i $str --query-gpu=clocks.current.graphics,clocks.current.memory,utilization.gpu,utilization.memory,temperature.gpu,temperature.memory,fan.speed,pstate,power.draw,power.limit,memory.used,memory.total |");
|
||||||
while(<IN>) {
|
while(<IN>) {
|
||||||
my @tmp = split(',', $_);
|
my @tmp = split(',', $_);
|
||||||
if(scalar(@tmp) > 1) { # To catch missing devices
|
if(scalar(@tmp) > 1) { # To catch missing devices
|
||||||
|
|
|
@ -998,15 +998,15 @@ sub unbound_cgi {
|
||||||
"$IMG_DIR" . "$IMG10");
|
"$IMG_DIR" . "$IMG10");
|
||||||
if(lc($config->{enable_zoom}) eq "y") {
|
if(lc($config->{enable_zoom}) eq "y") {
|
||||||
unlink ("$IMG_DIR" . "$IMG1z",
|
unlink ("$IMG_DIR" . "$IMG1z",
|
||||||
"$IMG_DIR" . "$IMG2z",
|
"$IMG_DIR" . "$IMG2z",
|
||||||
"$IMG_DIR" . "$IMG3z",
|
"$IMG_DIR" . "$IMG3z",
|
||||||
"$IMG_DIR" . "$IMG4z",
|
"$IMG_DIR" . "$IMG4z",
|
||||||
"$IMG_DIR" . "$IMG5z",
|
"$IMG_DIR" . "$IMG5z",
|
||||||
"$IMG_DIR" . "$IMG6z",
|
"$IMG_DIR" . "$IMG6z",
|
||||||
"$IMG_DIR" . "$IMG7z",
|
"$IMG_DIR" . "$IMG7z",
|
||||||
"$IMG_DIR" . "$IMG8z",
|
"$IMG_DIR" . "$IMG8z",
|
||||||
"$IMG_DIR" . "$IMG9z",
|
"$IMG_DIR" . "$IMG9z",
|
||||||
"$IMG_DIR" . "$IMG10z");
|
"$IMG_DIR" . "$IMG10z");
|
||||||
}
|
}
|
||||||
|
|
||||||
my $e; # ??????????
|
my $e; # ??????????
|
||||||
|
|
|
@ -140,15 +140,15 @@ sub verlihub_update {
|
||||||
if($dbh) {
|
if($dbh) {
|
||||||
# Now retrieve data from the table.
|
# Now retrieve data from the table.
|
||||||
$sth = $dbh->prepare($sql);
|
$sth = $dbh->prepare($sql);
|
||||||
$sth->execute;
|
$sth->execute;
|
||||||
my $row = $sth->fetchrow_hashref();
|
my $row = $sth->fetchrow_hashref();
|
||||||
|
|
||||||
$users_total = int($row->{users_total});
|
$users_total = int($row->{users_total});
|
||||||
$upload_total = int($row->{upload_total});
|
$upload_total = int($row->{upload_total});
|
||||||
$share_total = int($row->{share_total_gb});
|
$share_total = int($row->{share_total_gb});
|
||||||
|
|
||||||
$sth->finish;
|
$sth->finish;
|
||||||
$dbh->disconnect;
|
$dbh->disconnect;
|
||||||
|
|
||||||
$rrdata .= ":$users_total:$upload_total:$share_total";
|
$rrdata .= ":$users_total:$upload_total:$share_total";
|
||||||
RRDs::update($rrd, $rrdata);
|
RRDs::update($rrd, $rrdata);
|
||||||
|
|
|
@ -507,9 +507,9 @@ EOF
|
||||||
push(@output, " <table class='cgi-header-table' >\n");
|
push(@output, " <table class='cgi-header-table' >\n");
|
||||||
push(@output, " <tr>\n");
|
push(@output, " <tr>\n");
|
||||||
|
|
||||||
if(lc($config{enable_mainmenu_button} || "") eq "y") {
|
if(lc($config{enable_mainmenu_button} || "") eq "y") {
|
||||||
push(@output, " <span style='color:#888888;position:fixed;left:3em;font-size:32px;letter-spacing:-1px;'><a href='" . $config{url} . "/index.html' style='text-decoration:none;'>⌂</a>\n");
|
push(@output, " <span style='color:#888888;position:fixed;left:3em;font-size:32px;letter-spacing:-1px;'><a href='" . $config{url} . "/index.html' style='text-decoration:none;'>⌂</a>\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
if(lc($config{enable_back_button} || "") eq "y") {
|
if(lc($config{enable_back_button} || "") eq "y") {
|
||||||
push(@output, " <span style='color:#888888;position:fixed;left:1em;font-size:32px;letter-spacing:-1px;'><a href='javascript:history.back()' style='text-decoration:none;'>◀</a>\n");
|
push(@output, " <span style='color:#888888;position:fixed;left:1em;font-size:32px;letter-spacing:-1px;'><a href='javascript:history.back()' style='text-decoration:none;'>◀</a>\n");
|
||||||
|
|
Loading…
Reference in New Issue