summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-p2pblock/po/pt-br
diff options
context:
space:
mode:
authorCody R. Brown <dev@codybrown.ca>2017-01-22 22:25:44 -0800
committerHannu Nyman <hannu.nyman@iki.fi>2017-01-23 09:37:10 +0200
commit0f35de886c98404f1bf75460f7a76b6cb463e1e1 (patch)
tree26a22e37e5f05e745fc9b7a5f67804ac36f2e256 /applications/luci-app-p2pblock/po/pt-br
parent3b46d84fa8b5897233510ae78bdb9c0b8b61b2bc (diff)
luci-base: luci.tools.status: properly parse infinite dnsmasq leases
The expiry time in a dnsmasq lease file line may be 0 (i.e. expiry date = 01/01/1970 00:00:00 GMT) to denote an infinite lease time, so adjust the code to properly support that. The expiry attribute of the lease object will be set to "false" in case of an infinite lease. This is to mimic the odhcp code below. If the expiry date is not equal to 0, then just do exactly what was done before (return the os.diff of current time and ts). Signed-off-by: Cody R. Brown <dev@codybrown.ca>
Diffstat (limited to 'applications/luci-app-p2pblock/po/pt-br')
0 files changed, 0 insertions, 0 deletions