const struct argconfig_commandline_options command_line_options[] = {
{"output-format", 'o', "FMT", CFG_STRING, &cfg.output_format,
required_argument, output_format },
- {0}
+ { }
};
fd = parse_and_open(argc, argv, desc, command_line_options,
const struct argconfig_commandline_options command_line_options[] = {
{"output-format", 'o', "FMT", CFG_STRING, &cfg.output_format, required_argument, output_format },
- {0}
+ { }
};
fd = parse_and_open(argc, argv, desc, command_line_options, &cfg, sizeof(cfg));
const struct argconfig_commandline_options command_line_options[] = {
{"output-format", 'o', "FMT", CFG_STRING, &cfg.output_format, required_argument, output_format },
- {0}
+ { }
};
fd = parse_and_open(argc, argv, desc, command_line_options, &cfg, sizeof(cfg));
const struct argconfig_commandline_options command_line_options[] = {
{"output-format", 'o', "FMT", CFG_STRING, &cfg.output_format, required_argument, output_format },
- {0}
+ { }
};
fd = parse_and_open(argc, argv, desc, command_line_options, &cfg, sizeof(cfg));
strcpy(filename, cfg->output_file);
}
- smart.time_stamp = time(0);
+ smart.time_stamp = time(NULL);
nsid = nvme_get_nsid(fd);
if(nsid <= 0)
}
printf("Log file: %s\n", filename);
- header.time_stamp = time(0);
+ header.time_stamp = time(NULL);
ret = nvme_identify_ctrl(fd, &header.raw_ctrl);
if(ret)
freq_time = 1;
}
- start_time = time(0);
+ start_time = time(NULL);
end_time = start_time + total_time;
fflush(stdout);
while(1)
{
- cur_time = time(0);
+ cur_time = time(NULL);
if(cur_time >= end_time)
{
break;