mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-26 01:50:08 +01:00
core: use nm_utils_get_monotonic_timestamp_s in nm-device-wifi (scheduled_scan_time)
https://bugzilla.gnome.org/show_bug.cgi?id=720833 Signed-off-by: Thomas Haller <thaller@redhat.com>
This commit is contained in:
parent
f50ca4aed1
commit
fc870cf110
1 changed files with 2 additions and 2 deletions
|
|
@ -142,7 +142,7 @@ struct _NMDeviceWifiPrivate {
|
|||
guint32 rate;
|
||||
gboolean enabled; /* rfkilled or not */
|
||||
|
||||
time_t scheduled_scan_time;
|
||||
gint32 scheduled_scan_time;
|
||||
guint8 scan_interval; /* seconds */
|
||||
guint pending_scan_id;
|
||||
guint scanlist_cull_id;
|
||||
|
|
@ -1709,7 +1709,7 @@ static void
|
|||
schedule_scan (NMDeviceWifi *self, gboolean backoff)
|
||||
{
|
||||
NMDeviceWifiPrivate *priv = NM_DEVICE_WIFI_GET_PRIVATE (self);
|
||||
time_t now = time (NULL);
|
||||
gint32 now = nm_utils_get_monotonic_timestamp_s ();
|
||||
|
||||
/* Cancel the pending scan if it would happen later than (now + the scan_interval) */
|
||||
if (priv->pending_scan_id) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue