check_ifstatus: perfdata bug

Just turning attached patch of github issue #721 into a push request