interval=1
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
* @interval Interval of time.
*
* RETURNS:
- * 1 if we are actually close enough to desired interval, 0 otherwise.
+ * TRUE if we are actually close enough to desired interval, FALSE otherwise.
***************************************************************************
*/
int next_slice(unsigned long long uptime_ref, unsigned long long uptime,
last_uptime = uptime;
+ if (interval == 1)
+ /* Smallest time interval: Always close enough to desired interval */
+ return TRUE;
+
/*
* A few notes about the "algorithm" used here to display selected entries
* from the system activity file (option -f with -i flag):