Solved problem with RAM not showing numbers correctly

This commit is contained in:
Carlos
2019-08-25 11:29:06 +02:00
parent cb9027c42a
commit f3aad57148
6 changed files with 145 additions and 142 deletions

View File

@ -4,11 +4,11 @@ import com.google.gson.JsonObject;
public class RamUsage implements JSONOutput {
private String message;
private int free;
private int used;
private int max;
private long free;
private long used;
private long max;
public RamUsage(String message, int free, int used, int max) {
public RamUsage(String message, long free, long used, long max) {
this.message = message;
this.free = free;
this.used = used;
@ -29,7 +29,7 @@ public class RamUsage implements JSONOutput {
* Free amount of RAM, in MB
* @return
*/
public int getFree() {
public long getFree() {
return free;
}
@ -37,7 +37,7 @@ public class RamUsage implements JSONOutput {
* Used amount of RAM, in MB
* @return
*/
public int getUsed() {
public long getUsed() {
return used;
}
@ -45,7 +45,7 @@ public class RamUsage implements JSONOutput {
* Max amount of RAM, in MB
* @return
*/
public int getMax() {
public long getMax() {
return max;
}