mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
replaced Long instantiation with parseLong
Signed-off-by: Laszlo Hornyak <laszlo.hornyak@gmail.com>
This commit is contained in:
parent
ebf57654e7
commit
884e8c6510
@ -3098,8 +3098,8 @@ public class LibvirtComputingResource extends ServerResourceBase implements Serv
|
|||||||
String[] splitResult = result.split(":");
|
String[] splitResult = result.split(":");
|
||||||
int i = 0;
|
int i = 0;
|
||||||
while (i < splitResult.length - 1) {
|
while (i < splitResult.length - 1) {
|
||||||
stats[0] += (new Long(splitResult[i++])).longValue();
|
stats[0] += Long.parseLong(splitResult[i++]);
|
||||||
stats[1] += (new Long(splitResult[i++])).longValue();
|
stats[1] += Long.parseLong(splitResult[i++]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return stats;
|
return stats;
|
||||||
@ -3140,8 +3140,8 @@ public class LibvirtComputingResource extends ServerResourceBase implements Serv
|
|||||||
String[] splitResult = result.split(":");
|
String[] splitResult = result.split(":");
|
||||||
int i = 0;
|
int i = 0;
|
||||||
while (i < splitResult.length - 1) {
|
while (i < splitResult.length - 1) {
|
||||||
stats[0] += (new Long(splitResult[i++])).longValue();
|
stats[0] += Long.parseLong(splitResult[i++]);
|
||||||
stats[1] += (new Long(splitResult[i++])).longValue();
|
stats[1] += Long.parseLong(splitResult[i++]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return stats;
|
return stats;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user