It comes down to the OIDs that are being used to collect your statistics. If it's ifInOctets, it's 32 bit:
ifInOctets OBJECT-TYPE
SYNTAX Counter32 (0 .. 4294967295)
ACCESS read-only
STATUS current
DESCRIPTION
"The total number of octets received on the interface,
including framing characters.
Discontinuities in the value of this counter can occur at
re-initialization of the management system, and at other
times as indicated by the value of
ifCounterDiscontinuityTime."
::= { ifEntry 10 }
-- 1.3.6.1.2.1.2.2.1.10
You should probably use ifHCInOctets instead which are the 64 bit equivalent:
ifHCInOctets OBJECT-TYPE
SYNTAX Counter64 (0 .. 9223372036854775807)
ACCESS read-only
STATUS current
DESCRIPTION
"The total number of octets received on the interface,
including framing characters. This object is a 64-bit
version of ifInOctets.
Discontinuities in the value of this counter can occur at
re-initialization of the management system, and at other
times as indicated by the value of
ifCounterDiscontinuityTime."
::= { ifXEntry 6 }
-- 1.3.6.1.2.1.31.1.1.1.6