Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
"?"))))))
struct pid_stats {
- unsigned long long read_bytes __attribute__ ((aligned (16)));
+ unsigned long long read_bytes __attribute__ ((aligned (8)));
unsigned long long write_bytes __attribute__ ((packed));
unsigned long long cancelled_write_bytes __attribute__ ((packed));
unsigned long long blkio_swapin_delays __attribute__ ((packed));
extern char *tzname[2];
-long interval = 0;
+long interval = -1;
uint64_t flags = 0;
int optz = 0;
}
}
- else if (!interval) {
+ else if (interval < 0) {
/* Get interval */
interval = atol(argv[opt]);
if (interval < 1) {
print_collect_error();
}
- if (!interval && !comment[0]) {
+ if ((interval < 0) && !comment[0]) {
/*
* Interval (and count) not set, and no comment given
* => We are going to insert a restart mark.
open_ofile(&ofd, ofile, restart_mark);
open_stdout(&stdfd);
- if (!interval) {
+ if (interval < 0) {
if (ofd >= 0) {
/*
* Interval (and count) not set:
usage(argv[0]);
}
interval = atol(argv[opt++]);
- if (interval <= 0) {
+ if (interval < 1) {
usage(argv[0]);
}
}