1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-25 02:18:08 +00:00

Whitespace cleanup

* remove trailing whitespace
* remove empty lines at the end of files
This commit is contained in:
Lars Kruse 2018-08-02 02:03:42 +02:00
parent ef851f0c34
commit 17f784270a
604 changed files with 2927 additions and 2945 deletions

View file

@ -38,7 +38,7 @@ my $runType = "normal";
my @runTypes = qw( normal config autoconf );
if ($#ARGV + 1 == 1)
{
if (grep $_ eq $ARGV[0], @runTypes)
if (grep $_ eq $ARGV[0], @runTypes)
{
$runType = $ARGV[0];
}
@ -63,10 +63,10 @@ for (my $i = 0; $i < $gpuCount; $i++)
{
($ret, my $handle) = nvmlDeviceGetHandleByIndex($i);
next if $ret != $NVML_SUCCESS;
($ret, my $pciInfo) = nvmlDeviceGetPciInfo($handle);
my $gpuName = $pciInfo->{'busId'} if $ret == $NVML_SUCCESS;
if ($runType eq "config")
{
# only print the graph information once
@ -78,7 +78,7 @@ for (my $i = 0; $i < $gpuCount; $i++)
print "graph_category sensors\n";
print "graph_info Information for NVIDIA GPUs using driver version $driverVersion\n";
}
# metrics are collected for all the GPUs to a single graph
print "GPU_UTIL_$i.label GPU$i - $gpuName : GPU utilization\n";
print "GPU_FANSPEED_$i.label GPU$i - $gpuName : fan speed\n";