[gnome-settings-daemon] power: Fix arithmetic with the idle-dim multiplier



commit 49e463e9266ea5746b387f947ad5a8d28decf7f6
Author: Bastien Nocera <hadess hadess net>
Date:   Mon Jan 21 16:54:01 2013 +0100

    power: Fix arithmetic with the idle-dim multiplier
    
    Spotted by Giovanni Campagna.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=692192

 plugins/power/gsd-power-constants.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plugins/power/gsd-power-constants.h b/plugins/power/gsd-power-constants.h
index 8b02249..ef1be10 100644
--- a/plugins/power/gsd-power-constants.h
+++ b/plugins/power/gsd-power-constants.h
@@ -26,7 +26,7 @@
 #define IDLE_DIM_BLANK_DISABLED_MIN                     60 /* seconds */
 
 /* Which fraction of the idle-delay is the idle-dim delay */
-#define IDLE_DELAY_TO_IDLE_DIM_MULTIPLIER                4/5
+#define IDLE_DELAY_TO_IDLE_DIM_MULTIPLIER                4.0/5.0
 
 /* The dim delay under which we do not bother dimming */
 #define MINIMUM_IDLE_DIM_DELAY                          10 /* seconds */



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]