Code

store: Fixed a conversion warning reported by GCC.
authorSebastian Harl <sh@tokkee.org>
Thu, 3 Apr 2014 08:24:48 +0000 (10:24 +0200)
committerSebastian Harl <sh@tokkee.org>
Thu, 3 Apr 2014 08:24:48 +0000 (10:24 +0200)
src/core/store.c

index 6420190a319b532ed0db1b2248e4aafd6ee77784..0dec68db0ba9eea881c97bc00a6a178f4356c640 100644 (file)
@@ -297,7 +297,7 @@ store_obj(int parent_type, const char *parent_name,
                        old->last_update = last_update;
                        if (old->interval)
                                old->interval = (sdb_time_t)((0.9 * (double)old->interval)
-                                               + (0.1 * interval));
+                                               + (0.1 * (double)interval));
                        else
                                old->interval = interval;
                }