check_netint: more bugs with long-term average calculation code found and fixed during testing