Skip to content

Fixed incorrect values for negative prices - #1104

Merged
gskjold merged 1 commit into
mainfrom
fix/neg_price
Dec 30, 2025
Merged

gskjold merged 1 commit into
mainfrom
fix/neg_price

Conversation

@gskjold

@gskjold gskjold commented Dec 29, 2025 •

Copy link
Copy Markdown
Member

When extracting negative prices from the data sent from the server, a unsigned integer was accidentally used because this is the return value of ntohl() which was inline in the calculation. To remedy this, ntohl() have been extracted from the calculation and the return value is set directly into a signed integer for further processing.

Fixes: #1094 #1096 #1098 #1099 #1103

@gskjold
gskjold merged commit a0d7fd0 into main Dec 30, 2025
@gskjold
gskjold deleted the fix/neg_price branch December 30, 2025 09:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Crazy energy prices

1 participant