Skip to content

Commit

Permalink
Fix task quantum unmarshall error from bind stats channel xml output (#…
Browse files Browse the repository at this point in the history
…166)

* Fix task quantum unmarshall error from bind stats channel xml output


Signed-off-by: Benjamin Schoenbach <[email protected]>
  • Loading branch information
bschoenbach authored Mar 22, 2023
1 parent 9f11c3d commit 143595a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bind/bind.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ type Gauge struct {
type Task struct {
ID string `xml:"id"`
Name string `xml:"name"`
Quantum uint64 `xml:"quantum"`
Quantum int64 `xml:"quantum"`
References uint64 `xml:"references"`
State string `xml:"state"`
}
Expand Down
2 changes: 1 addition & 1 deletion fixtures/v2.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1616,7 +1616,7 @@
<references>2</references>
<id>0x7f989b7cd0c0</id>
<state>idle</state>
<quantum>1</quantum>
<quantum>-1</quantum>
</task>
</tasks>
</taskmgr>
Expand Down
2 changes: 1 addition & 1 deletion fixtures/v3/tasks
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<references>5</references>
<id>0x7febdb4790d0</id>
<state>idle</state>
<quantum>1</quantum>
<quantum>-1</quantum>
<events>0</events>
</task>
<task>
Expand Down

0 comments on commit 143595a

Please sign in to comment.