libgtop r2739 - trunk/sysdeps/linux
- From: bdejean svn gnome org
- To: svn-commits-list gnome org
- Subject: libgtop r2739 - trunk/sysdeps/linux
- Date: Mon, 21 Apr 2008 19:59:23 +0100 (BST)
Author: bdejean
Date: Mon Apr 21 18:59:23 2008
New Revision: 2739
URL: http://svn.gnome.org/viewvc/libgtop?rev=2739&view=rev
Log:
Added comment about get_scaled usage.
Modified:
trunk/sysdeps/linux/glibtop_private.h
Modified: trunk/sysdeps/linux/glibtop_private.h
==============================================================================
--- trunk/sysdeps/linux/glibtop_private.h (original)
+++ trunk/sysdeps/linux/glibtop_private.h Mon Apr 21 18:59:23 2008
@@ -61,7 +61,11 @@
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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]