--- a/bin/asstatd.pl 2017-02-26 12:08:49.740322120 +0200 +++ b/bin/asstatd.pl 2017-02-28 19:06:26.686928982 +0200 @@ -12,6 +12,7 @@ use IO::Socket; use RRDs; use Getopt::Std; use Scalar::Util qw(looks_like_number); +use Math::Int64 qw( string_to_int64 ); my %knownlinks; my %link_samplingrates; @@ -318,7 +319,7 @@ sub parse_netflow_v9_data_flowset { if ($cur_fldlen == 4) { $inoctets = unpack("N", $cur_fldval); } elsif ($cur_fldlen == 8) { - $inoctets = unpack("Q>", $cur_fldval); + $inoctets = unpack("A8>", string_to_int64($cur_fldval,2)); } } elsif ($cur_fldtype == 23) { # OUT_BYTES if ($cur_fldlen == 4) {