diff options
author | Damien George <damien.p.george@gmail.com> | 2017-03-29 12:53:35 +1100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2017-03-29 12:53:35 +1100 |
commit | f7816188b701552036c9f3f2c6d1eb06462087d1 (patch) | |
tree | e31cfa957b7dcbf3fba3f37a5b2cb498d5c3185c /extmod/vfs_fat.c | |
parent | f9b0e644e5e47cbdd15523d18328b07a5845d23f (diff) |
extmod/vfs_fat: Fix calculation of total blocks in statvfs.
Diffstat (limited to 'extmod/vfs_fat.c')
-rw-r--r-- | extmod/vfs_fat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/extmod/vfs_fat.c b/extmod/vfs_fat.c index 8cd5a4674..dee4f9298 100644 --- a/extmod/vfs_fat.c +++ b/extmod/vfs_fat.c @@ -268,7 +268,7 @@ STATIC mp_obj_t fat_vfs_statvfs(mp_obj_t vfs_in, mp_obj_t path_in) { t->items[0] = MP_OBJ_NEW_SMALL_INT(fatfs->csize * SECSIZE(fatfs)); // f_bsize t->items[1] = t->items[0]; // f_frsize - t->items[2] = MP_OBJ_NEW_SMALL_INT((fatfs->n_fatent - 2) * fatfs->csize); // f_blocks + t->items[2] = MP_OBJ_NEW_SMALL_INT((fatfs->n_fatent - 2)); // f_blocks t->items[3] = MP_OBJ_NEW_SMALL_INT(nclst); // f_bfree t->items[4] = t->items[3]; // f_bavail t->items[5] = MP_OBJ_NEW_SMALL_INT(0); // f_files |