Add tera and peta to RestTable.renderValue()

Closes #4871
This commit is contained in:
Andrew Raines 2014-01-24 11:13:22 -06:00
parent 4f442497bf
commit 4533462025
1 changed files with 8 additions and 0 deletions

View File

@ -233,6 +233,10 @@ public class RestTable {
return Long.toString(v.mb()); return Long.toString(v.mb());
} else if ("g".equals(resolution)) { } else if ("g".equals(resolution)) {
return Long.toString(v.gb()); return Long.toString(v.gb());
} else if ("t".equals(resolution)) {
return Long.toString(v.tb());
} else if ("p".equals(resolution)) {
return Long.toString(v.pb());
} else { } else {
return v.toString(); return v.toString();
} }
@ -248,6 +252,10 @@ public class RestTable {
return Long.toString(v.mega()); return Long.toString(v.mega());
} else if ("g".equals(resolution)) { } else if ("g".equals(resolution)) {
return Long.toString(v.giga()); return Long.toString(v.giga());
} else if ("t".equals(resolution)) {
return Long.toString(v.tera());
} else if ("p".equals(resolution)) {
return Long.toString(v.peta());
} else { } else {
return v.toString(); return v.toString();
} }