Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix task quantum unmarshall error from bind stats channel xml output #166

Merged
merged 2 commits into from
Mar 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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