From d89b434255915e2d9220a7426950eb523a918d92 Mon Sep 17 00:00:00 2001 From: Laurie Clark-Michalek Date: Sun, 22 May 2016 16:19:42 +0100 Subject: Persentage -> Percentage --- archey3 | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/archey3 b/archey3 index 2781fac..1075f87 100755 --- a/archey3 +++ b/archey3 @@ -264,17 +264,17 @@ class fsDisplay(display): #convert to straight float used_ = float(used[:-1]) * conversions[used[-1].upper()] total_ = float(total[:-1]) * conversions[total[-1].upper()] - persentage = used_ / total_ * 100 + percentage = used_ / total_ * 100 except Exception as e: self.state.logger.error( "Could not colorize output, errored with {0}".format(e)) return else: - used = self.color_me(used, persentage, low=low, medium=medium) + used = self.color_me(used, percentage, low=low, medium=medium) - if self.state.config.getboolean("fs", "persentage", fallback=True): - part = '{used} / {total} ({persentage}%) ({fstype})'.format( - used=used, total=total, persentage=int(persentage), + if self.state.config.getboolean("fs", "percentage", fallback=True): + part = '{used} / {total} ({percentage}%) ({fstype})'.format( + used=used, total=total, percentage=int(percentage), fstype=fstype) else: part = '{used} / {total} ({fstype})'.format( @@ -292,11 +292,11 @@ class ramDisplay(display): total = int(ram[1]) title = 'RAM' try: - persentage = (used / total * 100) + percentage = (used / total * 100) except: used += ' MB' else: - used = self.color_me(number=persentage, output=str(used) + ' MB') + used = self.color_me(number=percentage, output=str(used) + ' MB') part = '{used} / {total} MB'.format(used=used, total=total) return title, part -- cgit v1.2.3-54-g00ecf