Method: LinuxStat::Sysinfo.totalram
- Defined in:
- ext/sysinfo/sysinfo.c
.totalram ⇒ Object
16 17 18 19 20 21 22 23 |
# File 'ext/sysinfo/sysinfo.c', line 16 VALUE totalram(VALUE obj) { char status = sysinfo(&info) ; if (status < 0) return Qnil ; VALUE _rb_v = ULL2NUM((unsigned long long) info.totalram) ; VALUE _rb_mem_unit = ULL2NUM((unsigned long long) info.mem_unit) ; return rb_funcallv_public(_rb_v, rb_intern("*"), 1, &_rb_mem_unit) ; } |