/* how many seconds should sampling take by default */
#define DEFSAMPTIME 5
-/* maximum time (minutes) between two updates before traffic */
-/* for that period will be discarded */
-/* set to a little over one hour so that it doesn't break using */
-/* cron.hourly like Gentoo seems to do */
-#define MAXUPDATEINTERVAL 62
-
/* default query mode */
/* 0 = normal, 1 = days, 2 = months, 3 = top, 5 = short */
/* 7 = hours, 8 = xml, 9 = one line, 10 = json */
}
interval = ifinfo.timestamp - (*dc)->updated;
- if ( (interval >= 1) && (interval <= (60*MAXUPDATEINTERVAL)) ) {
+ /* maximum configurable update interval is 5 minutes, limit here is set to 6 minutes (360 seconds) */
+ /* in order to be on the safe side and avoid discarding data in case there's some random extra delay */
+ if ( (interval >= 1) && (interval <= 360) ) {
rxchange = countercalc(&(*dc)->currx, &ifinfo.rx, ifinfo.is64bit);
txchange = countercalc(&(*dc)->curtx, &ifinfo.tx, ifinfo.is64bit);