summaryrefslogtreecommitdiff
path: root/src/devices/bluetooth/nm-bluez5-dun.c
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2019-12-13 16:54:30 +0100
committerThomas Haller <thaller@redhat.com>2019-12-13 16:54:40 +0100
commitbd9b253540ae283af8f1e6651a7b2a095b1533d4 (patch)
tree24cdcf08684770db8eac4746fbb58c58989aafaf /src/devices/bluetooth/nm-bluez5-dun.c
parent13741aa952b57b6cfa60df42ed63a51b2fd59f06 (diff)
downloadNetworkManager-bd9b253540ae283af8f1e6651a7b2a095b1533d4.tar.gz
all: rename time related function to spell out nsec/usec/msec/sec
The abbreviations "ns" and "ms" seem not very clear to me. Spell them out to nsec/msec. Also, in parts we already used the longer abbreviations, so it wasn't consistent.
Diffstat (limited to 'src/devices/bluetooth/nm-bluez5-dun.c')
-rw-r--r--src/devices/bluetooth/nm-bluez5-dun.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/devices/bluetooth/nm-bluez5-dun.c b/src/devices/bluetooth/nm-bluez5-dun.c
index 72582fae99..063c3db575 100644
--- a/src/devices/bluetooth/nm-bluez5-dun.c
+++ b/src/devices/bluetooth/nm-bluez5-dun.c
@@ -145,7 +145,7 @@ _connect_open_tty_retry_cb (gpointer user_data)
if (r >= 0)
return G_SOURCE_REMOVE;
- if (nm_utils_get_monotonic_timestamp_ns () > context->cdat->connect_open_tty_started_at + (30 * 100 * NM_UTILS_NS_PER_MSEC)) {
+ if (nm_utils_get_monotonic_timestamp_nsec () > context->cdat->connect_open_tty_started_at + (30 * 100 * NM_UTILS_NSEC_PER_MSEC)) {
gs_free_error GError *error = NULL;
context->cdat->source_id = 0;
@@ -179,7 +179,7 @@ _connect_open_tty (NMBluez5DunContext *context)
context->rfcomm_tty_no,
nm_strerror_native (errsv),
errsv);
- context->cdat->connect_open_tty_started_at = nm_utils_get_monotonic_timestamp_ns ();
+ context->cdat->connect_open_tty_started_at = nm_utils_get_monotonic_timestamp_nsec ();
context->cdat->source_id = g_timeout_add (100,
_connect_open_tty_retry_cb,
context);