@@ -742,31 +742,31 @@ static Htop_Reaction actionHelp(State* st) {
742742 addbartext (CRT_colors [CPU_STEAL ], "/" , "steal" );
743743 addbartext (CRT_colors [CPU_GUEST ], "/" , "guest" );
744744 addbartext (CRT_colors [CPU_IOWAIT ], "/" , "io-wait" );
745- addbartext (CRT_colors [BAR_SHADOW ], " " , "used%" );
745+ addbartext (CRT_colors [BAR_SHADOW ], " " , "used%" );
746746 } else {
747747 addbartext (CRT_colors [CPU_GUEST ], "/" , "guest" );
748- addbartext (CRT_colors [BAR_SHADOW ], " " , "used%" );
748+ addbartext (CRT_colors [BAR_SHADOW ], " " , "used%" );
749749 }
750750 addattrstr (CRT_colors [BAR_BORDER ], "]" );
751751
752752 attrset (CRT_colors [DEFAULT_COLOR ]);
753753 mvaddstr (line ++ , 0 , "Memory bar: " );
754754 addattrstr (CRT_colors [BAR_BORDER ], "[" );
755755 // memory classes are OS-specific and provided in their <os>/Platform.c implementation
756- // ideal length of memory bar == 56 chars. Any length < 45 requires padding to 45 .
757- // [0 1 2 3 4 5 ]
758- // [12345678901234567890123456789012345678901234567890123456 ]
759- // [ ^ 5 ]
760- // [class1/class2/class3/.../classN used/total]
756+ // ideal length of memory bar == 56 chars. Any length < 46 requires padding to 46 .
757+ // [0 1 2 3 4 5 ]
758+ // [123456789012345678901234567890123456789012345678901234567 ]
759+ // [ ^ 5 ]
760+ // [class1/class2/class3/.../classN used/total]
761761 int barTxtLen = 0 ;
762762 for (unsigned int i = 0 ; i < Platform_numberOfMemoryClasses ; i ++ ) {
763763 if (!st -> host -> settings -> showCachedMemory && Platform_memoryClasses [i ].countsAsCache )
764764 continue ; // skip reclaimable cache memory classes if "show cached memory" is not ticked
765765 addbartext (CRT_colors [Platform_memoryClasses [i ].color ], (i == 0 ? "" : "/" ), Platform_memoryClasses [i ].label );
766766 barTxtLen += (i == 0 ? 0 : 1 ) + strlen (Platform_memoryClasses [i ].label );
767767 }
768- for (int i = barTxtLen ; i < 45 ; i ++ )
769- addattrstr (CRT_colors [BAR_SHADOW ], " " ); // pad to 45 chars if necessary
768+ for (int i = barTxtLen ; i < 46 ; i ++ )
769+ addattrstr (CRT_colors [BAR_SHADOW ], " " ); // pad to 46 chars if necessary
770770 addbartext (CRT_colors [BAR_SHADOW ], " " , "used" );
771771 addbartext (CRT_colors [BAR_SHADOW ], "/" , "total" );
772772 addattrstr (CRT_colors [BAR_BORDER ], "]" );
@@ -779,9 +779,9 @@ static Htop_Reaction actionHelp(State* st) {
779779 addbartext (CRT_colors [SWAP_CACHE ], "/" , "cache" );
780780 addbartext (CRT_colors [SWAP_FRONTSWAP ], "/" , "frontswap" );
781781#else
782- addbartext (CRT_colors [BAR_SHADOW ], " " , "" );
782+ addbartext (CRT_colors [BAR_SHADOW ], " " , "" );
783783#endif
784- addbartext (CRT_colors [BAR_SHADOW ], " " , "used" );
784+ addbartext (CRT_colors [BAR_SHADOW ], " " , "used" );
785785 addbartext (CRT_colors [BAR_SHADOW ], "/" , "total" );
786786 addattrstr (CRT_colors [BAR_BORDER ], "]" );
787787
0 commit comments