diff options
Diffstat (limited to 'archey3')
-rwxr-xr-x | archey3 | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -236,6 +236,10 @@ class fsDisplay(display): mount = '/root' if self.arg1 == '/' else self.arg1 title = mount.split('/')[-1].title() + + low = self.config.getint('fs', 'low_bound', fallback=40) + medium = self.config.getint('fs', 'medium_bound', fallback=70) + try: #convert to straight float used_ = float(used[:-1]) * conversions[used[-1].upper()] @@ -246,7 +250,7 @@ class fsDisplay(display): "Could not colorize output, errored with {0}".format(e)) return else: - used = self.color_me(used, persentage) + used = self.color_me(used, persentage, low=low, medium=medium) if self.config.getboolean("fs", "persentage", fallback=True): part = '{used} / {total} ({persentage}%) ({fstype})'.format( |