Instead of using: return statFs.Call<int>("getBlockSize") \* statFs.Call<int>("getAvailableBlocks"); //Returns negative numbers as int is too small you should use this: return statFs.Call<long>("getBlockSizeLong") \* statFs.Call<long>("getAvailableBlocksLong");
Instead of using:
return statFs.Call("getBlockSize") * statFs.Call("getAvailableBlocks");
//Returns negative numbers as int is too small
you should use this:
return statFs.Call("getBlockSizeLong") * statFs.Call("getAvailableBlocksLong");