summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurie Clark-Michalek <laurie@qubit.com>2016-05-22 16:19:42 +0100
committerLaurie Clark-Michalek <laurie@qubit.com>2016-05-22 16:19:42 +0100
commitd89b434255915e2d9220a7426950eb523a918d92 (patch)
treee947b40f102ee3a0bc5e557eb30bde412f727cb8
parentd40169b377399c7ecb261f31425d0408965e314a (diff)
Persentage -> Percentagearchey3/cosmetic
-rwxr-xr-xarchey314
1 files 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