summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLubomir Rintel <lkundrak@v3.sk>2018-06-15 14:42:11 +0200
committerThomas Haller <thaller@redhat.com>2018-06-15 16:23:30 +0200
commit1b6127d1bcf66fd7304fe894a6933ad2ffe0092c (patch)
tree23b9a12035fd4799adbe143b4ab6564b69857c74
parentcfa3a02b91dbbe605fbe8deb5ad40dd7db0cdac1 (diff)
downloadNetworkManager-1b6127d1bcf66fd7304fe894a6933ad2ffe0092c.tar.gz
examples/python: utilize nm_utils_get_timestamp_msec()
-rwxr-xr-xexamples/python/gi/checkpoint.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/examples/python/gi/checkpoint.py b/examples/python/gi/checkpoint.py
index 7c36cdba57..50e7c33532 100755
--- a/examples/python/gi/checkpoint.py
+++ b/examples/python/gi/checkpoint.py
@@ -19,8 +19,6 @@ gi.require_version('NM', '1.0')
from gi.repository import GLib, NM
import os
-os.sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))
-import nmex
###############################################################################
@@ -162,7 +160,7 @@ def do_adjust_rollback_timeout(client):
client.checkpoint_adjust_rollback_timeout(path, add_timeout, None, adjust_rollback_timeout_cb, None)
def do_show(client):
- ts = nmex.nm_boot_time_ms()
+ ts = NM.utils_get_timestamp_msec()
for c in client.get_checkpoints():
show(c, ts)