refactor: Get process IDs by iterating /proc. Improve readability in JsonConnection option handling. (#843)

Co-authored-by: brindosch <edeltraud70@gmx.de>
This commit is contained in:
Murat Seker
2020-06-29 22:55:12 +02:00
committed by GitHub
parent 26813be36a
commit 6cf9dfaa68
7 changed files with 60 additions and 107 deletions

View File

@@ -46,7 +46,7 @@ bool ScreenshotHandler::findNoSignalSettings(const Image<ColorRgb> & image)
ColorRgb redThresoldColor = {255,75,75};
ColorRgb greenThresoldColor = {75,255,75};
ColorRgb blueThresoldColor = {75,75,255};
QVector<unsigned> redOffsets;
QVector<unsigned> redCounts;
QVector<unsigned> greenOffsets;
@@ -203,7 +203,7 @@ bool ScreenshotHandler::findNoSignalSettings(const Image<ColorRgb> & image)
{
std::cout << "WARNING difference between threshold color and the other color components is to small, signal detection might have problems." << std::endl;
}
if (thresholdGreen > thresholdRed && thresholdGreen > thresholdBlue && ((thresholdGreen-thresholdRed) <= 0.5 || (thresholdGreen-thresholdBlue) <= 0.5))
{
std::cout << "WARNING difference between threshold color and the other color components is to small, signal detection might have problems." << std::endl;