From 098ee72f0c0092cfed11c0e7e1ac82849b4915de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Nusser?= Date: Sat, 16 Mar 2019 14:03:41 +0100 Subject: Some fixes for the new sample algorithm. --- src/powerlist.cc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/powerlist.cc') 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 #include #include @@ -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 -- cgit v1.2.3