| Summary: | processor cores are shown in incorrect sequence is > 10 | ||
|---|---|---|---|
| Product: | [Frameworks and Libraries] frameworks-solid | Reporter: | Marius Cirsta <marius_mps> |
| Component: | general | Assignee: | Lukáš Tinkl <lukas> |
| Status: | CONFIRMED --- | ||
| Severity: | normal | CC: | kde, kdelibs-bugs-null, nix.or.die |
| Priority: | NOR | ||
| Version First Reported In: | 5.20.0 | ||
| Target Milestone: | --- | ||
| Platform: | Other | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
| Attachments: | patch to sort processors based on cpu number | ||
|
Description
Marius Cirsta
2016-04-14 23:08:59 UTC
Created attachment 98416 [details]
patch to sort processors based on cpu number
Same bug exists in 5.27.0 Thanks for the patch, just so you know, we tend to use http://git.reviewboard.kde.org for patches, ones on bugs tend to get missed, particularly in less active components. The patch itself could do with some work; right now you're effectively resorting the entire list on every insert, and with a regular expression too. You should be able to identify where in the list to insert, then insert at that position using: auto place = std::lower_bound(list.constStart, list.constEnd, newItem, compareFunction); list.insert(place, newItem); also instead of a regular expression you should be able to use QCollator with http://doc.qt.io/qt-5/qcollator.html#setNumericMode |