sadc was unable to read a list of comma separated values following
option -S. This is now fixed.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
collect_group_activities(G_DISK + G_XDISK, AO_F_DISK_PART);
}
}
- else if (strspn(argv[opt], DIGITS) == strlen(argv[opt])) {
+ else if (strspn(p, DIGITS) == strlen(p)) {
/*
* Although undocumented, option -S followed by a numerical value
* enables the user to select each activity that should be
*/
int act_id;
- act_id = atoi(argv[opt]);
+ act_id = atoi(p);
if (act_id > 255) {
act_id >>= 8;
for (i = 0; i < NR_ACT; i++) {