Explorar el Código

Fixed calculation of capacity on OpenBSD (#441)

master
Martin Ziemer Mischievous Meerkat hace 5 años
padre
commit
527e995f1f
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. +1
    -1
      src/nnn.c

+ 1
- 1
src/nnn.c Ver fichero

@@ -3285,7 +3285,7 @@ static size_t get_fs_info(const char *path, bool type)
return 0;

if (type == CAPACITY)
return svb.f_blocks << ffs((int)(svb.f_bsize >> 1));
return svb.f_blocks << ffs((int)(svb.f_frsize >> 1));

return svb.f_bavail << ffs((int)(svb.f_frsize >> 1));
}


Cargando…
Cancelar
Guardar