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:
Amnon Heiman 2017-02-22 12:40:19 +02:00 committed by Pekka Enberg
parent 962a42dbd5
commit 9c11768b9d

View File

@ -472,8 +472,8 @@ public class APIClient {
for (int i = 0; i < arr.size(); i++) { for (int i = 0; i < arr.size(); i++) {
JsonObject obj = arr.getJsonObject(i); JsonObject obj = arr.getJsonObject(i);
if (obj.containsKey("ks") && obj.containsKey("cf")) { if (obj.containsKey("ks") && obj.containsKey("cf")) {
SnapshotDetailsTabularData.from(key, obj.getString("ks"), obj.getString("cf"), obj.getInt("total"), SnapshotDetailsTabularData.from(key, obj.getString("ks"), obj.getString("cf"), obj.getJsonNumber("total").longValue(),
obj.getInt("live"), data); obj.getJsonNumber("live").longValue(), data);
} }
} }
return data; return data;