From 7faad646eb9bdef20de4dd847e4ec048a5eed828 Mon Sep 17 00:00:00 2001 From: Wolfgang Beck Date: Thu, 15 Dec 2011 10:12:38 +1000 Subject: Grue example doesn't stop counting when reaches 100 Change-Id: I8dfc97897e4d42b657b55ab3e3d734556313c48b Sanity-Review: Qt Sanity Bot Reviewed-by: Lincoln Ramsay Reviewed-by: Wolfgang Beck --- examples/sensors/grue/plugin/gruesensorimpl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/sensors') diff --git a/examples/sensors/grue/plugin/gruesensorimpl.cpp b/examples/sensors/grue/plugin/gruesensorimpl.cpp index 134cd88e..d06ab8ee 100644 --- a/examples/sensors/grue/plugin/gruesensorimpl.cpp +++ b/examples/sensors/grue/plugin/gruesensorimpl.cpp @@ -129,7 +129,7 @@ void gruesensorimpl::increaseChance() // No point in using the timer anymore if we've hit 1... you can't get more // likely to be eaten than 100% - if (chance == 1.0) + if (chance >= 1.0) darkTimer->stop(); } -- cgit v1.2.3