* fhandler_process.cc (format_process_statm): Fix output of dirty

pages.  Add linefeed.
This commit is contained in:
Corinna Vinschen 2014-10-08 15:25:52 +00:00
parent ee97a4e332
commit 2bf7d695ea
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2014-10-08 Corinna Vinschen <corinna@vinschen.de>
* fhandler_process.cc (format_process_statm): Fix output of dirty
pages. Add linefeed.
2014-09-05 Corinna Vinschen <corinna@vinschen.de>
* fhandler_proc.cc (proc_tab): Add entry for cygdrive symlink.

View File

@ -1160,8 +1160,8 @@ format_process_statm (void *data, char *&destbuf)
&vmlib, &vmshare))
return 0;
destbuf = (char *) crealloc_abort (destbuf, 96);
return __small_sprintf (destbuf, "%ld %ld %ld %ld %ld %ld %ld",
vmsize, vmrss, vmshare, vmtext, vmlib, vmdata, 0);
return __small_sprintf (destbuf, "%ld %ld %ld %ld %ld %ld 0\n",
vmsize, vmrss, vmshare, vmtext, vmlib, vmdata);
}
extern "C" {