Page 1 of 1

Device Storage Space not returning true size of storage

Posted: 14 May 2017 21:53
by mstout
I thought I'd add the percentage of free space in my device to a Custom Widget I have. I used the Condition "Device Storage Space" so that I'd have the variables used_space and available_space available for calculations.

When I total those two variables, I get a total size of about 26 gigabytes. Yet my system actually has 29.7 gigabytes (a 32 gigabyte Pixel XL).

I tried the block_size and block_count variables and do the math I still get the 26 gigabytes.

Am I doing something wrong, or understanding wrong or is this a bug worthy of reporting?

I seem to be missing 3.6 gigabytes.

Thank you for any guidance, and Happy Mother's Day to all mothers on the forum.

Re: Device Storage Space not returning true size of storage

Posted: 16 May 2017 11:48
by Martin
Hi,

The condition reports the available and used space for the file system pointed to by the path so you will likely get the available and free space on the internal memory without counting the size of the system partitions and other special partitions.

Regards,
Martin

Re: Device Storage Space not returning true size of storage

Posted: 16 May 2017 23:01
by mstout
Thank you. Suspected something like that.