We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1508f06 commit 97bdbf4Copy full SHA for 97bdbf4
gpus.go
@@ -17,8 +17,8 @@ package main
17
18
import (
19
"github.com/prometheus/client_golang/prometheus"
20
+ "github.com/prometheus/common/log"
21
"io/ioutil"
- "log"
22
"os/exec"
23
"strings"
24
)
@@ -51,8 +51,9 @@ func ParseTotalGPUs() float64 {
51
output := string(Execute("sinfo", args))
52
if len(output) > 0 {
53
for _, line := range strings.Split(output, "\n") {
54
+ log.Infof("Line %s: ", line)
55
descriptor := strings.Split(line, " ")[0]
- log.Fatal(descriptor)
56
+ log.Infof("Descriptor %s: ", descriptor)
57
}
58
59
0 commit comments