From 15bc23ee201b27d5636d76a55b5a0f92ceaba7ea Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Thu, 7 Sep 2017 08:26:09 +0200 Subject: Charts example/Windows: Replace dot in parsing output of tasklist In German locale, '.' is used as a separator character. Change-Id: I8c856866bc9376deb61ebb1f159dd7ecde1495a2 Reviewed-by: Alexandru Croitor --- examples/charts/memoryusage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/charts/memoryusage.py b/examples/charts/memoryusage.py index 5842e4c..c0e0a38 100644 --- a/examples/charts/memoryusage.py +++ b/examples/charts/memoryusage.py @@ -66,7 +66,7 @@ def getMemoryUsage(): command = line[0:23].strip() if command.endswith('.exe'): command = command[0:len(command) - 4] - memoryUsage = float(line[64:74].strip().replace(',', '')) + memoryUsage = float(line[64:74].strip().replace(',', '').replace('.', '')) legend = '' if memoryUsage > 10240: legend = '{} {}M'.format(command, round(memoryUsage / 1024)) -- cgit v1.2.3