Skip to content

Commit

Permalink
Reorder PCP meter types placing dynamic meters toward the end
Browse files Browse the repository at this point in the history
Improve the display of the Available Meters column by placing
all the regular hard-coded htop meters first, then the Blank
meter, then Dynamic Meters.
  • Loading branch information
natoscott authored and BenBE committed Jul 18, 2024
1 parent 4f5293e commit 7d36545
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pcp/Platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ const unsigned int Platform_numberOfSignals = ARRAYSIZE(Platform_signals);

const MeterClass* const Platform_meterTypes[] = {
&CPUMeter_class,
&DynamicMeter_class,
&ClockMeter_class,
&DateMeter_class,
&DateTimeMeter_class,
Expand All @@ -106,7 +105,6 @@ const MeterClass* const Platform_meterTypes[] = {
&RightCPUs4Meter_class,
&LeftCPUs8Meter_class,
&RightCPUs8Meter_class,
&BlankMeter_class,
&PressureStallCPUSomeMeter_class,
&PressureStallIOSomeMeter_class,
&PressureStallIOFullMeter_class,
Expand All @@ -120,6 +118,8 @@ const MeterClass* const Platform_meterTypes[] = {
&NetworkIOMeter_class,
&SysArchMeter_class,
&FileDescriptorMeter_class,
&BlankMeter_class,
&DynamicMeter_class,
NULL
};

Expand Down

0 comments on commit 7d36545

Please sign in to comment.