Merge "No quota-level details for public volumes." into oc-dev
am: 4566cb5756
Change-Id: Ib778a428d4f43b976b13ab21aee021bb9beb7d79
This commit is contained in:
@@ -152,6 +152,12 @@ public class StorageMeasurement {
|
||||
final MeasurementDetails details = new MeasurementDetails();
|
||||
if (mVolume == null) return details;
|
||||
|
||||
if (mVolume.getType() == VolumeInfo.TYPE_PUBLIC) {
|
||||
details.totalSize = mVolume.getPath().getTotalSpace();
|
||||
details.availSize = mVolume.getPath().getUsableSpace();
|
||||
return details;
|
||||
}
|
||||
|
||||
try {
|
||||
details.totalSize = mStats.getTotalBytes(mVolume.fsUuid);
|
||||
details.availSize = mStats.getFreeBytes(mVolume.fsUuid);
|
||||
@@ -161,7 +167,6 @@ public class StorageMeasurement {
|
||||
return details;
|
||||
}
|
||||
|
||||
|
||||
final long finishTotal = SystemClock.elapsedRealtime();
|
||||
Log.d(TAG, "Measured total storage in " + (finishTotal - start) + "ms");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user