Code Duplication    Length = 11-11 lines in 2 locations

glances/plugins/processlist/__init__.py 1 location

@@ 780-790 (lines=11) @@
777
        if 'status' in display_stats:
778
            msg = self.layout_header['status'].format('S')
779
            ret.append(self.curse_add_line(msg))
780
        if 'io_counters' in display_stats:
781
            msg = self.layout_header['ior'].format('R/s')
782
            ret.append(
783
                self.curse_add_line(
784
                    msg, sort_style if process_sort_key == 'io_counters' else 'DEFAULT', optional=True, additional=True
785
                )
786
            )
787
            msg = self.layout_header['iow'].format('W/s')
788
            ret.append(
789
                self.curse_add_line(
790
                    msg, sort_style if process_sort_key == 'io_counters' else 'DEFAULT', optional=True, additional=True
791
                )
792
            )
793
        if args.is_standalone and not args.disable_cursor:

glances/plugins/programlist/__init__.py 1 location

@@ 217-227 (lines=11) @@
214
        if 'status' in display_stats:
215
            msg = self.layout_header['status'].format('S')
216
            ret.append(self.curse_add_line(msg))
217
        if 'io_counters' in display_stats:
218
            msg = self.layout_header['ior'].format('R/s')
219
            ret.append(
220
                self.curse_add_line(
221
                    msg, sort_style if process_sort_key == 'io_counters' else 'DEFAULT', optional=True, additional=True
222
                )
223
            )
224
            msg = self.layout_header['iow'].format('W/s')
225
            ret.append(
226
                self.curse_add_line(
227
                    msg, sort_style if process_sort_key == 'io_counters' else 'DEFAULT', optional=True, additional=True
228
                )
229
            )
230
        if args.is_standalone and not args.disable_cursor: