HacklabJKL / visitors

Visitor data collector using DHCP leases
GNU General Public License v3.0
0 stars 1 forks source link

Add statistical fix to leave times #7

Closed zouppen closed 4 years ago

zouppen commented 7 years ago

DHCP lease is renewed after halfway of the lease length. If person movements and DHCP lease packets are independent (which is safe to assume) person who gets no new DHCP lease has left by average in the halfway of the renewing interval. So it's good idea to add 1/4 lease length to leave timestamps which is 1.25 min with 5 minute lease length. This way we get a better estimate of visit lengths.

I know this is not very important fix but easy to do.

zouppen commented 4 years ago

Can be done in the view without touching the database logic. Less configurable, though.