Method: LinuxStat::Sysinfo.freehigh

Defined in:
ext/sysinfo/sysinfo.c

.freehighObject



80
81
82
83
84
85
86
87
# File 'ext/sysinfo/sysinfo.c', line 80

VALUE freehigh(VALUE obj) {
  char status = sysinfo(&info) ;
  if (status < 0) return Qnil ;

  VALUE _rb_v = ULL2NUM((unsigned long long) info.freehigh) ;
  VALUE _rb_mem_unit = ULL2NUM((unsigned long long) info.mem_unit) ;
  return rb_funcallv_public(_rb_v, rb_intern("*"), 1, &_rb_mem_unit) ;
}