chiark / gitweb /
systemd-python: _reader now takes unix timestamp in seconds
[elogind.git] / src / python-systemd / journal.py
index 279662e6a674f295e464d76938588f7b1e247f68..ab8661e987343f636f3fcd5351b72fe86120cd74 100644 (file)
@@ -126,7 +126,7 @@ class Journal(_Journal):
 
     def seek_realtime(self, timestamp):
         if isinstance(timestamp, datetime.datetime):
-            timestamp = int(timestamp.strftime("%s%f"))
+            timestamp = float(timestamp.strftime("%s.%f"))
         return super(Journal, self).seek_realtime(timestamp)
 
     def seek_monotonic(self, timestamp, bootid=None):