Skip to content

Commit

Permalink
Merge pull request #10 from CLIP-HPC/9-v101-runtime-error-invalid-mem…
Browse files Browse the repository at this point in the history
…ory-address-or-nil-pointer-dereference

fix: ignore sacct jobs with no jobid field
  • Loading branch information
pja237 authored Dec 22, 2022
2 parents 707f030 + 0f992d0 commit 3b8bab1
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1.0.0
v1.0.2
8 changes: 8 additions & 0 deletions internal/model/tabs/jobhisttab/jobhisttabtable.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,14 @@ func (saList *SacctJSON) FilterSacctTable(f string, l *log.Logger) (*TableRows,

for _, v := range saList.Jobs {

// https://github.com/CLIP-HPC/SlurmCommander/issues/9
// Entry without JobId, log&discard
switch {
case v.JobId == nil:
l.Printf("FilterSacctTable: Found job with no JobId field, skipping...\n")
continue
}

line := strings.Join([]string{
strconv.Itoa(*v.JobId),
*v.Name,
Expand Down
5 changes: 3 additions & 2 deletions internal/model/view.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,12 @@ func (m Model) tabAbout() string {

s += `
Petar Jager
CLIP-HPC @VBC
Contributors:
A special thank you goes to:
Seren Ümit
Kilian Cavalotti
Killian Murphy
`

return s
Expand Down

0 comments on commit 3b8bab1

Please sign in to comment.