]> granicus.if.org Git - sysstat/commitdiff
sar: Use SELECT_ACTIVITY() macro to select hugepages activity
authorSebastien GODARD <sysstat@users.noreply.github.com>
Fri, 6 Jul 2018 09:27:44 +0000 (11:27 +0200)
committerSebastien GODARD <sysstat@users.noreply.github.com>
Fri, 6 Jul 2018 09:27:44 +0000 (11:27 +0200)
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
sa_common.c

index 46db0adc5dc5bf828064ac05bc503c05b3f31fec..73588c4c0dfb59999b0f1ae42faeb90137f3994f 100644 (file)
@@ -2076,8 +2076,7 @@ int parse_sar_opt(char *argv[], int *opt, struct activity *act[],
                        break;
 
                case 'H':
-                       p = get_activity_position(act, A_HUGE, EXIT_IF_NOT_FOUND);
-                       act[p]->options   |= AO_SELECTED;
+                       SELECT_ACTIVITY(A_HUGE);
                        break;
 
                case 'h':