Browse Source

mem plugin: update formatting as well

master
Von Random 2 months ago
parent
commit
579e0d0069
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      plugins/mem.py

+ 2
- 2
plugins/mem.py View File

@@ -15,5 +15,5 @@ class PluginThread(plugins.PluginThreadCommon):
15 15
         else:
16 16
             self.hide = True
17 17
             self.status['urgent'] = False
18
-        mem_available = str(round(mem_stat.available / 2**30, 2))
19
-        self.status['full_text'] = 'RAM: ' + str(mem_available) + 'G'
18
+        mem_available = round(mem_stat.available / 2**30, 2)
19
+        self.status['full_text'] = 'RAM: {:.2f}G'.format(mem_available)

Loading…
Cancel
Save