dholbach | good morning | 06:31 |
---|---|---|
=== dupondje_ is now known as dupondje | ||
psusi | so I was using fscanf to extract some parameters from /etc/meminfo like this: | 22:30 |
psusi | fscanf (info, "MemTotal: %*d kB MemFree: %d kB Buffers: %d kB Cached: %d kB" | 22:30 |
psusi | it seems that at some point they added a new MemAvailable field between MemFree and Buffers and now this fails | 22:31 |
psusi | how can I work around this? i.e. specify that there may or may not be an additional string there, and I don't care whether it is or is not | 22:31 |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!