substituted leading spaces to tabs in some lines of code

This commit is contained in:
Jordi Sanfeliu 2022-09-13 15:48:55 +02:00
parent 471c5eb547
commit 9a831bcfdc
6 changed files with 21 additions and 21 deletions

View File

@ -385,7 +385,7 @@ sub ipmi_cgi {
}
}
}
my $whitespace_key_support = lc($ipmi->{whitespace_key_support} || "") eq "y" ? 1 : 0;
$n = 0;

View File

@ -252,7 +252,7 @@ sub nut_update {
sub skipscale_string {
my ($skipscale) = @_;
if ($skipscale) {
if ($skipscale) {
return ":skipscale";
} else {
return "";
@ -262,7 +262,7 @@ sub skipscale_string {
sub altscaling_options {
my ($altscaling) = @_;
my @scaling_options;
if ($altscaling) {
if ($altscaling) {
push(@scaling_options, "--alt-autoscale");
push(@scaling_options, "--alt-y-grid");
}

View File

@ -185,7 +185,7 @@ sub nvidiagpu_update {
if($n < scalar(@gpu_group)) {
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>) {
my @tmp = split(',', $_);
if(scalar(@tmp) > 1) { # To catch missing devices

View File

@ -998,15 +998,15 @@ sub unbound_cgi {
"$IMG_DIR" . "$IMG10");
if(lc($config->{enable_zoom}) eq "y") {
unlink ("$IMG_DIR" . "$IMG1z",
"$IMG_DIR" . "$IMG2z",
"$IMG_DIR" . "$IMG3z",
"$IMG_DIR" . "$IMG4z",
"$IMG_DIR" . "$IMG5z",
"$IMG_DIR" . "$IMG6z",
"$IMG_DIR" . "$IMG7z",
"$IMG_DIR" . "$IMG8z",
"$IMG_DIR" . "$IMG9z",
"$IMG_DIR" . "$IMG10z");
"$IMG_DIR" . "$IMG2z",
"$IMG_DIR" . "$IMG3z",
"$IMG_DIR" . "$IMG4z",
"$IMG_DIR" . "$IMG5z",
"$IMG_DIR" . "$IMG6z",
"$IMG_DIR" . "$IMG7z",
"$IMG_DIR" . "$IMG8z",
"$IMG_DIR" . "$IMG9z",
"$IMG_DIR" . "$IMG10z");
}
my $e; # ??????????

View File

@ -140,15 +140,15 @@ sub verlihub_update {
if($dbh) {
# Now retrieve data from the table.
$sth = $dbh->prepare($sql);
$sth->execute;
$sth->execute;
my $row = $sth->fetchrow_hashref();
$users_total = int($row->{users_total});
$upload_total = int($row->{upload_total});
$share_total = int($row->{share_total_gb});
$users_total = int($row->{users_total});
$upload_total = int($row->{upload_total});
$share_total = int($row->{share_total_gb});
$sth->finish;
$dbh->disconnect;
$dbh->disconnect;
$rrdata .= ":$users_total:$upload_total:$share_total";
RRDs::update($rrd, $rrdata);

View File

@ -507,9 +507,9 @@ EOF
push(@output, " <table class='cgi-header-table' >\n");
push(@output, " <tr>\n");
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;'>&#8962;</a>\n");
}
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;'>&#8962;</a>\n");
}
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;'>&#9664;</a>\n");