chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
systemd-python: _reader now takes unix timestamp in seconds
[elogind.git]
/
src
/
python-systemd
/
journal.py
diff --git
a/src/python-systemd/journal.py
b/src/python-systemd/journal.py
index 279662e6a674f295e464d76938588f7b1e247f68..ab8661e987343f636f3fcd5351b72fe86120cd74 100644
(file)
--- a/
src/python-systemd/journal.py
+++ b/
src/python-systemd/journal.py
@@
-126,7
+126,7
@@
class Journal(_Journal):
def seek_realtime(self, timestamp):
if isinstance(timestamp, datetime.datetime):
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):
return super(Journal, self).seek_realtime(timestamp)
def seek_monotonic(self, timestamp, bootid=None):