]> git.llucax.com Git - z.facultad/75.42/plaqui.git/blobdiff - Model/include/condition.h
Mini bugfix.
[z.facultad/75.42/plaqui.git] / Model / include / condition.h
index 38da2a47a56d3292eb24e0ce84fec93895662a24..9dc9539a9148d180af15e1f3fe85831b92dc32cd 100644 (file)
@@ -35,9 +35,9 @@ public:
                tmp = litros / capac;
                switch (cond) {
                        case LT:
                tmp = litros / capac;
                switch (cond) {
                        case LT:
-                               return (tmp < percent);
+                               return (tmp <= percent);
                        case GT:
                        case GT:
-                               return (tmp > percent);
+                               return (tmp >= percent);
                }
        }
 protected:
                }
        }
 protected: