Projet

Général

Profil

Révision 17f78427

ID17f784270ae966ee9a13e9f5104a5b8f925b639e
Parent ef851f0c
Enfant d4320aea, 5b2396a9

Ajouté par Lars Kruse il y a plus de 7 ans

Whitespace cleanup

  • remove trailing whitespace
  • remove empty lines at the end of files

Voir les différences:

plugins/gpu/nvidia_smi_
38 38
my @runTypes = qw( normal config autoconf );
39 39
if ($#ARGV + 1 == 1)
40 40
{
41
    if (grep $_ eq $ARGV[0], @runTypes) 
41
    if (grep $_ eq $ARGV[0], @runTypes)
42 42
    {
43 43
        $runType = $ARGV[0];
44 44
    }
......
63 63
{
64 64
    ($ret, my $handle) = nvmlDeviceGetHandleByIndex($i);
65 65
    next if $ret != $NVML_SUCCESS;
66
    
66

  
67 67
    ($ret, my $pciInfo) = nvmlDeviceGetPciInfo($handle);
68 68
    my $gpuName = $pciInfo->{'busId'} if $ret == $NVML_SUCCESS;
69
    
69

  
70 70
    if ($runType eq "config")
71 71
    {
72 72
        # only print the graph information once
......
78 78
            print "graph_category sensors\n";
79 79
            print "graph_info Information for NVIDIA GPUs using driver version $driverVersion\n";
80 80
        }
81
        
81

  
82 82
        # metrics are collected for all the GPUs to a single graph
83 83
        print "GPU_UTIL_$i.label GPU$i - $gpuName : GPU utilization\n";
84 84
        print "GPU_FANSPEED_$i.label GPU$i - $gpuName : fan speed\n";

Formats disponibles : Unified diff