summaryrefslogtreecommitdiffstats
path: root/examples/sensors/grue/console_app/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/sensors/grue/console_app/main.cpp')
-rw-r--r--examples/sensors/grue/console_app/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/sensors/grue/console_app/main.cpp b/examples/sensors/grue/console_app/main.cpp
index dc62e4de..1a112aee 100644
--- a/examples/sensors/grue/console_app/main.cpp
+++ b/examples/sensors/grue/console_app/main.cpp
@@ -53,7 +53,7 @@ public:
bool filter(QSensorReading *reading)
{
- int percent = reading->property("chanceOfBeingEaten").value<qreal>() * 100;
+ int percent = reading->property("chanceOfBeingEaten").value<int>();
if (percent == 0) {
qDebug() << "It is light. You are safe from Grues.";
} else if (lastPercent == 0) {