Skip to content

Commit e3cd573

Browse files
authored
Merge pull request vpenso#21 from cleargray/command-paths
Changed path to sdiag and squeue utils from absolute to relative (lik…
2 parents d68ed3c + 61e6b4e commit e3cd573

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

queue.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ func ParseQueueMetrics(input []byte) *QueueMetrics {
8484

8585
// Execute the squeue command and return its output
8686
func QueueData() []byte {
87-
cmd := exec.Command("/usr/bin/squeue", "-a", "-r", "-h", "-o %A,%T,%r", "--states=all")
87+
cmd := exec.Command("squeue", "-a", "-r", "-h", "-o %A,%T,%r", "--states=all")
8888
stdout, err := cmd.StdoutPipe()
8989
if err != nil {
9090
log.Fatal(err)

scheduler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ type SchedulerMetrics struct {
4545

4646
// Execute the sdiag command and return its output
4747
func SchedulerData() []byte {
48-
cmd := exec.Command("/usr/bin/sdiag")
48+
cmd := exec.Command("sdiag")
4949
stdout, err := cmd.StdoutPipe()
5050
if err != nil { log.Fatal(err) }
5151
if err := cmd.Start(); err != nil { log.Fatal(err) }

0 commit comments

Comments
 (0)