Skip to content
  • Thomas Haller's avatar
    dhcp/nettools: exactly calculate lease lifetimes · 0108d748
    Thomas Haller authored
    Now that we can not only get the expiry timestamp of the lease
    (n_dhcp4_client_lease_get_lifetime()), but also the base timestamp,
    we can calculate the lifetime exactly.
    
    Previously, we had to guess the base time by assuming that we just
    received the lease *now*. This wasn't exact.
    0108d748