mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-06-10 18:28:27 +02:00
device: fix typo in EPOCH_DATETIME_THREE_YEARS constant
The macro intended to represent approximately three years in seconds
but used 356 days/year instead of 365, making the period 27 days
shorter than intended.
Fixes: 7a0b6b17bb ('libnm-core: add ipv6.dhcp-duid property')
This commit is contained in:
parent
e7a211caa1
commit
d6e996fb14
1 changed files with 1 additions and 1 deletions
|
|
@ -1294,7 +1294,7 @@ _prop_get_ipv6_dhcp_duid(NMDevice *self,
|
|||
gint64 time;
|
||||
guint32 timestamp;
|
||||
|
||||
#define EPOCH_DATETIME_THREE_YEARS (356 * 24 * 3600 * 3)
|
||||
#define EPOCH_DATETIME_THREE_YEARS (365 * 24 * 3600 * 3)
|
||||
|
||||
/* We want a variable time between the host_id timestamp and three years
|
||||
* before. Let's compute the time (in seconds) from 0 to 3 years; then we'll
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue