examples/python: utilize nm_utils_get_timestamp_msec()

This commit is contained in:
Lubomir Rintel
2018-06-15 14:42:11 +02:00
committed by Thomas Haller
parent cfa3a02b91
commit 1b6127d1bc

View File

@@ -19,8 +19,6 @@ gi.require_version('NM', '1.0')
from gi.repository import GLib, NM from gi.repository import GLib, NM
import os 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) client.checkpoint_adjust_rollback_timeout(path, add_timeout, None, adjust_rollback_timeout_cb, None)
def do_show(client): def do_show(client):
ts = nmex.nm_boot_time_ms() ts = NM.utils_get_timestamp_msec()
for c in client.get_checkpoints(): for c in client.get_checkpoints():
show(c, ts) show(c, ts)