Minor style change suggested by internal static analysis tool.

TBR=sakal@webrtc.org
BUG=None

Review-Url: https://codereview.webrtc.org/2646413002
Cr-Commit-Position: refs/heads/master@{#16207}
This commit is contained in:
aleloi
2017-01-23 03:10:39 -08:00
committed by Commit bot
parent a31cdbce13
commit 011240333e

View File

@ -114,7 +114,7 @@ class CpuMonitor {
private final int size;
private double sum;
private double currentValue;
private double circBuffer[];
private double[] circBuffer;
private int circBufferIndex;
public MovingAverage(int size) {
@ -480,7 +480,7 @@ class CpuMonitor {
// cpu 5093818 271838 3512830 165934119 101374 447076 272086 0 0 0
// user nice system idle iowait irq softirq
String line = reader.readLine();
String lines[] = line.split("\\s+");
String[] lines = line.split("\\s+");
int length = lines.length;
if (length >= 5) {
userTime = parseLong(lines[1]); // user