Device Storage Space not returning true size of storage

Post your questions and help other users.

Moderator: Martin

Post Reply
mstout
Posts: 5
Joined: 12 Nov 2016 00:48

Device Storage Space not returning true size of storage

Post by mstout » 14 May 2017 21:53

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.

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: Device Storage Space not returning true size of storage

Post by Martin » 16 May 2017 11:48

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

mstout
Posts: 5
Joined: 12 Nov 2016 00:48

Re: Device Storage Space not returning true size of storage

Post by mstout » 16 May 2017 23:01

Thank you. Suspected something like that.

Post Reply