[gnome-flashback] power-applet: fix rounding error



commit 5d4f560c955bfaca8be372286b5749ab0af85f6c
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Wed Jun 21 16:15:50 2017 +0300

    power-applet: fix rounding error

 gnome-flashback/libpower-applet/gf-power-applet.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gnome-flashback/libpower-applet/gf-power-applet.c 
b/gnome-flashback/libpower-applet/gf-power-applet.c
index b76deae..968edb1 100644
--- a/gnome-flashback/libpower-applet/gf-power-applet.c
+++ b/gnome-flashback/libpower-applet/gf-power-applet.c
@@ -153,7 +153,7 @@ get_tooltip_text (GfPowerApplet *applet)
   else
     return g_strdup (_("Estimating..."));
 
-  time = round (seconds / 60);
+  time = round (seconds / 60.0);
 
   if (time == 0)
     return g_strdup (_("Estimating..."));


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