return NULL;
}
- return bprintf("%f",
- (float)fs.f_frsize * (float)fs.f_bavail / 1024 / 1024 / 1024);
+ return fmt_scaled(fs.f_frsize * fs.f_bavail);
}
const char *
return NULL;
}
- return bprintf("%f",
- (float)fs.f_frsize * (float)fs.f_blocks / 1024 / 1024 / 1024);
+ return fmt_scaled(fs.f_frsize * fs.f_blocks);
}
const char *
return NULL;
}
- return bprintf("%f",
- (float)fs.f_frsize * ((float)fs.f_blocks -
- (float)fs.f_bfree) / 1024 / 1024 / 1024);
+ return fmt_scaled(fs.f_frsize * (fs.f_blocks - fs.f_bfree));
}