From 077fae50af57814c75dc0bc1e6267d0c91e608b3 Mon Sep 17 00:00:00 2001 From: eelke Date: Mon, 28 Jan 2019 20:52:04 +0100 Subject: [PATCH] fix some warnings --- pglab/QueryExplainModel.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pglab/QueryExplainModel.cpp b/pglab/QueryExplainModel.cpp index 019ad7c..212e750 100644 --- a/pglab/QueryExplainModel.cpp +++ b/pglab/QueryExplainModel.cpp @@ -64,12 +64,12 @@ if (role == Qt::DisplayRole) { if (col == c_ColumnExclusive || col == c_ColumnInclusive) { float t = col == 1 ? item->exclusiveTime() : item->inclusiveTime(); float tt = explain->plan->inclusiveTime(); - if (tt > 0.000000001) { + if (tt > 0.000000001f) { float f = t / tt; - if (f > 0.9) { + if (f > 0.9f) { result = QColor(255, 192, 192); } - else if (f > 0.63) { + else if (f > 0.63f) { result = QColor(255, 224, 192); } else if (f > 0.36f) {