Fix typo in string formatting for gpu mem stats in curses (#983)

This commit is contained in:
Kirby Banman
2016-12-18 15:36:03 -07:00
committed by Alessio Sergi
parent ff14d3349c
commit b80a7515f1

View File

@@ -154,7 +154,7 @@ class Plugin(GlancesPlugin):
if gpu_stats['mem'] is None:
msg = '{:>8}'.format('N/A')
else:
msg = '{:>7d%}'.format(int(gpu_stats['mem']))
msg = '{:>7d}%'.format(int(gpu_stats['mem']))
ret.append(self.curse_add_line(
msg, self.get_views(item=gpu_stats[self.get_key()],
key='mem',