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>
(cherry picked from commit 9c11768b9d)
This commit is contained in:
Amnon Heiman 2017-02-22 12:40:19 +02:00 committed by Pekka Enberg
parent d0401e7b1c
commit 8487889c24

View File

@ -471,7 +471,7 @@ public class APIClient {
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.getString("cf"), obj.getJsonNumber("total").longValue(),
obj.getInt("live"), data);
}
}