Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoland Grunberg2015-02-12 19:51:51 +0000
committerRoland Grunberg2015-02-12 21:35:49 +0000
commit01a5abd75f0a5f040ea2c12fe6af3d6e648bb713 (patch)
tree1762152306bdf8b67e1a569ec378401c81d5e85d
parentd1da5b2d0554a775d7119d577b04d4358f74aee3 (diff)
downloadorg.eclipse.linuxtools-01a5abd75f0a5f040ea2c12fe6af3d6e648bb713.tar.gz
org.eclipse.linuxtools-01a5abd75f0a5f040ea2c12fe6af3d6e648bb713.tar.xz
org.eclipse.linuxtools-01a5abd75f0a5f040ea2c12fe6af3d6e648bb713.zip
Handle case where percentage value includes '%' symbol.
Change-Id: Iea61c59b7343d1e54a6d45234cc8ab7923c91be4 Reviewed-on: https://git.eclipse.org/r/41780 Reviewed-by: Roland Grunberg <rgrunber@redhat.com> Tested-by: Roland Grunberg <rgrunber@redhat.com> Tested-by: Hudson CI
-rw-r--r--perf/org.eclipse.linuxtools.perf/src/org/eclipse/linuxtools/internal/perf/PerfCore.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/perf/org.eclipse.linuxtools.perf/src/org/eclipse/linuxtools/internal/perf/PerfCore.java b/perf/org.eclipse.linuxtools.perf/src/org/eclipse/linuxtools/internal/perf/PerfCore.java
index 1f0d2b7720..b2b589e787 100644
--- a/perf/org.eclipse.linuxtools.perf/src/org/eclipse/linuxtools/internal/perf/PerfCore.java
+++ b/perf/org.eclipse.linuxtools.perf/src/org/eclipse/linuxtools/internal/perf/PerfCore.java
@@ -451,7 +451,7 @@ public class PerfCore {
if (items.length != 5) {
continue;
}
- percent = Float.parseFloat(items[0]); //percent column
+ percent = Float.parseFloat(items[0].replace("%", "")); //$NON-NLS-1$ //$NON-NLS-2$
samples = Double.parseDouble(items[1].trim()); //samples column
comm = items[2].trim(); //command column
dso = items[3].trim(); //dso column

Back to the top