Method: LinuxStat::Sysinfo.totalhigh
- Defined in:
- ext/sysinfo/sysinfo.c
.totalhigh ⇒ Object
71 72 73 74 75 76 77 78 |
# File 'ext/sysinfo/sysinfo.c', line 71 VALUE totalhigh(VALUE obj) { char status = sysinfo(&info) ; if (status < 0) return Qnil ; VALUE _rb_v = ULL2NUM((unsigned long long) info.totalhigh) ; VALUE _rb_mem_unit = ULL2NUM((unsigned long long) info.mem_unit) ; return rb_funcallv_public(_rb_v, rb_intern("*"), 1, &_rb_mem_unit) ; } |