mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-04 02:09:30 +02:00
bugfix - ordering is oposite in events page and mqtt publish
This commit is contained in:
parent
086c3dfa29
commit
eb901da385
4 changed files with 14 additions and 5 deletions
|
@ -266,7 +266,7 @@ void publish_events() {
|
|||
}
|
||||
}
|
||||
// Sort events by timestamp
|
||||
std::sort(order_events.begin(), order_events.end(), compareEventsByTimestamp);
|
||||
std::sort(order_events.begin(), order_events.end(), compareEventsByTimestampAsc);
|
||||
|
||||
for (const auto& event : order_events) {
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue