diff options
author | André Nusser <andre.nusser@googlemail.com> | 2019-03-16 14:03:41 +0100 |
---|---|---|
committer | André Nusser <andre.nusser@googlemail.com> | 2019-05-11 14:54:51 +0200 |
commit | 098ee72f0c0092cfed11c0e7e1ac82849b4915de (patch) | |
tree | 774ae7fa0a55389db2fbe7f3ba65a6904c96c63a /src/powerlist.cc | |
parent | ee41b02f78a81cb96365c56f7a8dd69d7f6e7d72 (diff) |
Some fixes for the new sample algorithm.
Diffstat (limited to 'src/powerlist.cc')
-rw-r--r-- | src/powerlist.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/powerlist.cc b/src/powerlist.cc index 87d6e9f..a0510ad 100644 --- a/src/powerlist.cc +++ b/src/powerlist.cc @@ -26,6 +26,7 @@ */ #include "powerlist.h" +#include <algorithm> #include <stdlib.h> #include <string.h> @@ -197,6 +198,8 @@ void PowerList::finalise() DEBUG(rand, " - power: %f\n", item.power); } + + std::sort(samples.begin(), samples.end()); } const PowerListItems& PowerList::getPowerListItems() const |