mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-12-01 20:36:37 -05:00
Convert stdint to short ints
This commit is contained in:
parent
53c5a2cf1e
commit
511bf47af9
63 changed files with 294 additions and 290 deletions
|
|
@ -18,7 +18,8 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <cstdint>
|
||||
#include "base_types.h"
|
||||
|
||||
#include <string>
|
||||
|
||||
#include <sys/statvfs.h>
|
||||
|
|
@ -36,7 +37,7 @@ namespace StatVFS
|
|||
|
||||
static
|
||||
inline
|
||||
int64_t
|
||||
s64
|
||||
spaceavail(const struct statvfs &st_)
|
||||
{
|
||||
return (st_.f_frsize * st_.f_bavail);
|
||||
|
|
@ -44,7 +45,7 @@ namespace StatVFS
|
|||
|
||||
static
|
||||
inline
|
||||
int64_t
|
||||
s64
|
||||
spaceused(const struct statvfs &st_)
|
||||
{
|
||||
return (st_.f_frsize * (st_.f_blocks - st_.f_bavail));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue