2020-10-09
2020-10-09 13:03:33 by Henrik Grubbström (Grubba) <grubba@grubba.org>
-
c99e443869c9e03aa9991c4fe458d8835923905e
(3 lines)
(+2/-1)
[
Show
| Annotate
]
Branch: af40af6f37c0e96947d2dee772d8b5bfd0eb0c53
ABS: Fixed typo.
2769: Inside #if undefined(__NT__)
protected int get_vmem_usage()
{
- Stdio.Stat st = file_stat(sprintf("/proc/$d/as", getpid()));
+ Stdio.Stat st = file_stat(sprintf("/proc/%d/as", getpid()));
// NB: On Linux the size in stat for all stuff in /proc is 0.
if (st && st->size) {
// Return the size of the address space.