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) {