-CPU_CHART_SERIES_NAME_APP_LOAD=App. Load
-CPU_CHART_SERIES_NAME_TOTLA_LOAD=Total Load
+CPU_CHART_SERIES_NAME_APP_LOAD=App.
+CPU_CHART_SERIES_NAME_TOTLA_LOAD=Total
CPU_CHART_TIME=Time
CPU_CHART_TITLE=CPU
try {
time = (long)Double.parseDouble(log.get(LogCenterConstants.DEVICE_TIME_INDEX)) / TimelineConstants.TIME_US_TO_MS / TimelineConstants.TIME_US_TO_MS;
String[] cpuRates = log.get(LogCenterConstants.DEVICE_SYSTEM_CPU_USAGE_INDEX).split(","); //$NON-NLS-1$
- systemAvgLoad = Double.parseDouble(cpuRates[cpuRates.length - 1]);
+ systemAvgLoad = Double.parseDouble(cpuRates[cpuRates.length - 1].trim());
} catch (NumberFormatException ne) {
ne.printStackTrace();
} catch (NullPointerException ne) {
}
for(int i = 0; i < coreSize; i++) {
- coreInfos[i].newXYDataItems.add(new XYDataItem(time, Double.parseDouble(cpuRates[i])));
+ coreInfos[i].newXYDataItems.add(new XYDataItem(time, Double.parseDouble(cpuRates[i].trim())));
}
} catch (NumberFormatException ne) {
ne.printStackTrace();
try {
time = Double.parseDouble(log.get(LogCenterConstants.DEVICE_TIME_INDEX)) / TimelineConstants.TIME_US_TO_MS / TimelineConstants.TIME_US_TO_MS;
String[] cpuFreqs = log.get(LogCenterConstants.DEVICE_CPU_FREQUENCY_INDEX).split(","); //$NON-NLS-1$
- freq1 = Double.parseDouble(cpuFreqs[0]);
+ freq1 = Double.parseDouble(cpuFreqs[0].trim());
} catch (NumberFormatException ne) {
ne.printStackTrace();
} catch (NullPointerException ne) {