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:
Beniamino Galvani 2026-05-30 18:36:55 +02:00
parent e7a211caa1
commit d6e996fb14

View file

@ -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