diff options
author | Benoît Dejean <bdejean@src.gnome.org> | 2008-04-21 18:59:23 +0000 |
---|---|---|
committer | Benoît Dejean <bdejean@src.gnome.org> | 2008-04-21 18:59:23 +0000 |
commit | cd950bbf73499bc1517af028cdd1f99e09e45151 (patch) | |
tree | c615627d3932a163390db8d5a3829ac3ec196f5b /sysdeps/linux | |
parent | c1b95643a8dc076b0d695fb9261e575ec6a5fa30 (diff) | |
download | libgtop-cd950bbf73499bc1517af028cdd1f99e09e45151.tar.gz |
Added comment about get_scaled usage.
svn path=/trunk/; revision=2739
Diffstat (limited to 'sysdeps/linux')
-rw-r--r-- | sysdeps/linux/glibtop_private.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sysdeps/linux/glibtop_private.h b/sysdeps/linux/glibtop_private.h index 8acfa2fa..4c47dc8f 100644 --- a/sysdeps/linux/glibtop_private.h +++ b/sysdeps/linux/glibtop_private.h @@ -61,7 +61,11 @@ skip_line (const char *p) return (char *) (*p ? p+1 : p); } - +/* + * Smart strtoul which handles binary suffixes + * e.g: get_scaled("Size: 32 kB", "Size:") == 32768 + * key can be NULL if there's not prefix to strip (or prefix size is known + */ unsigned long long get_scaled(const char *buffer, const char *key); |