Skip to content

Commit

Permalink
Changed path to sdiag and squeue utils from absolute to relative (lik…
Browse files Browse the repository at this point in the history
…e sinfo). Just for ability to use PATH variable.
  • Loading branch information
Nikitin Sergey committed Aug 9, 2019
1 parent d68ed3c commit 61e6b4e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion queue.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ func ParseQueueMetrics(input []byte) *QueueMetrics {

// Execute the squeue command and return its output
func QueueData() []byte {
cmd := exec.Command("/usr/bin/squeue", "-a", "-r", "-h", "-o %A,%T,%r", "--states=all")
cmd := exec.Command("squeue", "-a", "-r", "-h", "-o %A,%T,%r", "--states=all")
stdout, err := cmd.StdoutPipe()
if err != nil {
log.Fatal(err)
Expand Down
2 changes: 1 addition & 1 deletion scheduler.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ type SchedulerMetrics struct {

// Execute the sdiag command and return its output
func SchedulerData() []byte {
cmd := exec.Command("/usr/bin/sdiag")
cmd := exec.Command("sdiag")
stdout, err := cmd.StdoutPipe()
if err != nil { log.Fatal(err) }
if err := cmd.Start(); err != nil { log.Fatal(err) }
Expand Down

0 comments on commit 61e6b4e

Please sign in to comment.