diff options
author | Max Kellermann <max@duempel.org> | 2014-01-18 16:28:12 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-01-18 16:28:12 +0100 |
commit | fab6cbed7554ad83df3d70cf24a94a178fe406ff (patch) | |
tree | 660fdd95cdac3ad1af9ee945c63cd31466367e2b /src/db/upnp/Discovery.hxx | |
parent | 051eede1edda157f7354c9ad468e8884a8987979 (diff) | |
download | mpd-fab6cbed7554ad83df3d70cf24a94a178fe406ff.tar.gz mpd-fab6cbed7554ad83df3d70cf24a94a178fe406ff.tar.xz mpd-fab6cbed7554ad83df3d70cf24a94a178fe406ff.zip |
db/upnp/Discovery: eliminate attribute "last_seen"
Diffstat (limited to '')
-rw-r--r-- | src/db/upnp/Discovery.hxx | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/db/upnp/Discovery.hxx b/src/db/upnp/Discovery.hxx index cda78cff5..a45163e9b 100644 --- a/src/db/upnp/Discovery.hxx +++ b/src/db/upnp/Discovery.hxx @@ -67,16 +67,14 @@ class UPnPDeviceDirectory { /** * The MonotonicClockS() time stamp when this device - * was last seen alive. + * expires. */ - unsigned last_seen; - - unsigned expires; // seconds valid + unsigned expires; ContentDirectoryDescriptor() = default; ContentDirectoryDescriptor(unsigned last, int exp) - :last_seen(last), expires(exp+20) {} + :expires(last + exp + 20) {} bool Parse(const std::string &url, const char *description, Error &_error) { |