Skip to content

Commit

Permalink
fix decimal separator to .
Browse files Browse the repository at this point in the history
  • Loading branch information
Luke Owncloud authored and andrewleo committed Dec 17, 2014
1 parent bb006b9 commit 0bfc4ae
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/com/netease/qa/emmagee/utils/CpuInfo.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,11 @@
import java.io.IOException;
import java.io.RandomAccessFile;
import java.text.DecimalFormat;
import java.text.DecimalFormatSymbols;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Locale;
import java.util.regex.Pattern;

import com.netease.qa.emmagee.service.EmmageeService;
Expand Down Expand Up @@ -229,6 +231,7 @@ public ArrayList<String> getCpuList() {
public ArrayList<String> getCpuRatioInfo(String totalBatt, String currentBatt, String temperature, String voltage) {

DecimalFormat fomart = new DecimalFormat();
fomart.setDecimalFormatSymbols(new DecimalFormatSymbols(Locale.US));
fomart.setGroupingUsed(false);
fomart.setMaximumFractionDigits(2);
fomart.setMinimumFractionDigits(2);
Expand Down

0 comments on commit 0bfc4ae

Please sign in to comment.