fix some warnings
This commit is contained in:
parent
7c32d67196
commit
077fae50af
1 changed files with 3 additions and 3 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue