APIClient: Snapshot disk size should be long
When parsing the snapshot disk sizes, it should be long and not int. See scylladb/scylla#2104 Signed-off-by: Amnon Heiman <amnon@scylladb.com> Message-Id: <1487760019-1354-1-git-send-email-amnon@scylladb.com>
This commit is contained in:
parent
962a42dbd5
commit
9c11768b9d
@ -472,8 +472,8 @@ public class APIClient {
|
||||
for (int i = 0; i < arr.size(); i++) {
|
||||
JsonObject obj = arr.getJsonObject(i);
|
||||
if (obj.containsKey("ks") && obj.containsKey("cf")) {
|
||||
SnapshotDetailsTabularData.from(key, obj.getString("ks"), obj.getString("cf"), obj.getInt("total"),
|
||||
obj.getInt("live"), data);
|
||||
SnapshotDetailsTabularData.from(key, obj.getString("ks"), obj.getString("cf"), obj.getJsonNumber("total").longValue(),
|
||||
obj.getJsonNumber("live").longValue(), data);
|
||||
}
|
||||
}
|
||||
return data;
|
||||
|
Loading…
Reference in New Issue
Block a user