chiark / gitweb /
logind: fix operation precedence mix-up
[elogind.git] / src / login / logind-session.c
index e438c66332c7443d1250fdf7b5cc5bb213955b81..819596ddbe58fe82f6281afea125c16756edf204 100644 (file)
@@ -769,7 +769,7 @@ int session_get_idle_hint(Session *s, dual_timestamp *t) {
         b = u + IDLE_THRESHOLD_USEC < n;
 
         if (t)
-                dual_timestamp_from_realtime(t, u + b ? IDLE_THRESHOLD_USEC : 0);
+                dual_timestamp_from_realtime(t, u + b*IDLE_THRESHOLD_USEC);
 
         return b;