.
OBS-URL: https://build.opensuse.org/package/show/Base:System/procps?expand=0&rev=40
This commit is contained in:
parent
ebd8cc790e
commit
3d10b6eae1
@ -91,8 +91,8 @@
|
||||
+The procps package is maintained by Albert Calahan. Please send
|
||||
+bug reports to <albert@users.sf.net>.
|
||||
--- pmap.c
|
||||
+++ pmap.c 2010-03-02 15:16:14.000127413 +0000
|
||||
@@ -1,372 +1,421 @@
|
||||
+++ pmap.c 2010-12-03 16:55:52.268426585 +0000
|
||||
@@ -1,372 +1,428 @@
|
||||
/*
|
||||
- * Copyright 2002 by Albert Cahalan; all rights reserved.
|
||||
- * This file may be used subject to the terms and conditions of the
|
||||
@ -347,10 +347,17 @@
|
||||
+ if (!doswap)
|
||||
+ goto out;
|
||||
+
|
||||
+ /* get swap */
|
||||
+ /* get and ignore anonymous */
|
||||
+ if (!fgets(buff, BUFFERSIZE, smaps_fp))
|
||||
+ return 1;
|
||||
+
|
||||
+ assigned = sscanf(buff, "Anonymous: %lld", &data);
|
||||
+
|
||||
+ /* get swap */
|
||||
+ if (assigned == 1)
|
||||
+ if(!fgets(buff, BUFFERSIZE, smaps_fp))
|
||||
+ return 1;
|
||||
+
|
||||
+ assigned = sscanf(buff, "Swap: %lld", &data);
|
||||
+ if (assigned != 1)
|
||||
+ return 1;
|
||||
|
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Dec 3 17:56:27 CET 2010 - werner@suse.de
|
||||
|
||||
- pmap: get and ignore Anonymous tag in smaps (bnc#656826)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Oct 29 12:17:40 CEST 2010 - werner@suse.de
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user