summaryrefslogtreecommitdiff
path: root/src/powerlist.cc
diff options
context:
space:
mode:
authorAndré Nusser <andre.nusser@googlemail.com>2019-03-16 14:03:41 +0100
committerAndré Nusser <andre.nusser@googlemail.com>2019-05-11 14:54:51 +0200
commit098ee72f0c0092cfed11c0e7e1ac82849b4915de (patch)
tree774ae7fa0a55389db2fbe7f3ba65a6904c96c63a /src/powerlist.cc
parentee41b02f78a81cb96365c56f7a8dd69d7f6e7d72 (diff)
Some fixes for the new sample algorithm.
Diffstat (limited to 'src/powerlist.cc')
-rw-r--r--src/powerlist.cc3
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