[pkg-fso-commits] [SCM] FSO frameworkd Debian packaging branch, master, updated. milestone4-368-g700ab82

Jan Luebbe jluebbe at debian.org
Mon Feb 2 18:51:42 UTC 2009


The following commit has been merged in the master branch:
commit 5b039793d0bd30c5bd393197aaed00f55e501f69
Author: Jan Luebbe <jluebbe at debian.org>
Date:   Fri Dec 19 11:51:16 2008 +0100

    otimed: allow time travel to the past

diff --git a/framework/subsystems/otimed/otimed.py b/framework/subsystems/otimed/otimed.py
index 665aab3..17b4ad3 100644
--- a/framework/subsystems/otimed/otimed.py
+++ b/framework/subsystems/otimed/otimed.py
@@ -210,7 +210,7 @@ class Time( dbus.service.Object ):
         sd = sqrt( sum( (x-mean)**2 for x in offsets ) / n )
         logger.info( "offsets: n=%i mean=%f sd=%f", n, mean, sd )
 
-        if sd < 15.0 < mean:
+        if sd < 15.0 < abs( mean ):
             logger.info( "adjusting clock by %f seconds" % mean )
             d = timedelta( seconds=mean )
             for source in self.timesources:

-- 
FSO frameworkd Debian packaging



More information about the pkg-fso-commits mailing list