Update packetcapture.pm

minor bug fixed