diff options
author | nicolargo <nicolas@nicolargo.com> | 2017-04-01 22:03:41 +0200 |
---|---|---|
committer | nicolargo <nicolas@nicolargo.com> | 2017-04-01 22:03:41 +0200 |
commit | b7326b82fae9f8649bc462ff0a22b616e381d0b4 (patch) | |
tree | 395c702198c6c171a62f88d6310e43343f6bec16 | |
parent | 4a2826669b77d5e7d1cb7a13b315c4a703e90f76 (diff) |
Problem with non breaking space in file system name #1065
-rw-r--r-- | NEWS | 1 | ||||
-rw-r--r-- | glances/plugins/glances_fs.py | 3 |
2 files changed, 3 insertions, 1 deletions
@@ -9,6 +9,7 @@ Bugs corrected: * StatsD export prefix option is ignored (issue #1074) * Some FS and LAN metrics fail to export correctly to StatsD (issue #1068) + * Problem with non breaking space in file system name (issue #1065) Version 2.9.1 ============= diff --git a/glances/plugins/glances_fs.py b/glances/plugins/glances_fs.py index adf415c6..b99bc0bb 100644 --- a/glances/plugins/glances_fs.py +++ b/glances/plugins/glances_fs.py @@ -131,7 +131,8 @@ class Plugin(GlancesPlugin): fs_current = { 'device_name': fs.device, 'fs_type': fs.fstype, - 'mnt_point': fs.mountpoint, + # Manage non breaking space (see issue #1065) + 'mnt_point': unicode(fs.mountpoint, 'utf-8').replace(u'\u00A0', ' '), 'size': fs_usage.total, 'used': fs_usage.used, 'free': fs_usage.free, |