diff --git a/clients/cli/devices.c b/clients/cli/devices.c index d92978f5a6..235690980f 100644 --- a/clients/cli/devices.c +++ b/clients/cli/devices.c @@ -2770,7 +2770,7 @@ wifi_list_aps (NMDeviceWifi *wifi, gboolean needs_rescan; WifiListData *data; - needs_rescan = rescan_cutoff < 0 || (rescan_cutoff > 0 && nm_device_wifi_get_last_scan (wifi) < rescan_cutoff); + needs_rescan = rescan_cutoff < 0 || (rescan_cutoff > 0 && nm_device_wifi_get_last_scan (wifi) < (rescan_cutoff * 1000)); if (needs_rescan) { data = g_slice_new0 (WifiListData); diff --git a/introspection/org.freedesktop.NetworkManager.Device.Wireless.xml b/introspection/org.freedesktop.NetworkManager.Device.Wireless.xml index af6e8c7ff3..130385455c 100644 --- a/introspection/org.freedesktop.NetworkManager.Device.Wireless.xml +++ b/introspection/org.freedesktop.NetworkManager.Device.Wireless.xml @@ -99,12 +99,12 @@ - +