mirror of
https://github.com/usatiuk/dhfs.git
synced 2025-10-29 04:57:48 +01:00
fix size using int instead of long
This commit is contained in:
@@ -757,7 +757,7 @@ public class DhfsFileServiceImpl implements DhfsFileService {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Long size(String uuid) {
|
public Long size(String uuid) {
|
||||||
int size = 0;
|
long size = 0;
|
||||||
|
|
||||||
NavigableMap<Long, String> chunksAll;
|
NavigableMap<Long, String> chunksAll;
|
||||||
|
|
||||||
@@ -779,7 +779,7 @@ public class DhfsFileServiceImpl implements DhfsFileService {
|
|||||||
size += getChunkSize(chunk.getValue());
|
size += getChunkSize(chunk.getValue());
|
||||||
}
|
}
|
||||||
|
|
||||||
return (long) size;
|
return size;
|
||||||
}
|
}
|
||||||
|
|
||||||
private JObject<Directory> getRoot() {
|
private JObject<Directory> getRoot() {
|
||||||
|
|||||||
Reference in New Issue
Block a user