[patch #7204] dump memory statistics to file

spiralvoice <[email protected]>
Newsgroups gmane.network.mldonkey.user
Message-ID <[email protected]>
Follow-up Comment #2, patch #7204 (project mldonkey):

Yet another patch to fix compilation error:

--- src/daemon/common/commonHosts.ml	2010-10-23 20:45:06.000000000 +0200
+++ src/daemon/common/commonHosts.ml	2005-09-19 12:09:05.000000000 +0200
@@ -93,9 +93,9 @@
 
     let hosts_by_key = Hashtbl.create 103
 
-    let () =
-     Heap.add_memstat "CommonHosts" (fun _level k ->
-      k "hosts_by_key" (`I (Hashtbl.length hosts_by_key));
+    let _ =
+     Heap.add_memstat "CommonHosts" (fun level buf ->
+      Printf.bprintf buf "  hosts_by_key: %dn" (Hashtbl.length
hosts_by_key);
      )
 
 


    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/patch/?7204>

_______________________________________________
  Nachricht geschickt von/durch Savannah
  http://savannah.nongnu.org/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.