aboutsummaryrefslogtreecommitdiff
path: root/net-p2p/mldonkey-devel/files/patch-src__daemon__common__commonInteractive.ml
diff options
context:
space:
mode:
authorMario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>2005-12-10 23:56:58 +0000
committerMario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>2005-12-10 23:56:58 +0000
commit34387509d2249c2e0dba2fd21a4991fe1ffe9b97 (patch)
tree36e5eb5b645b6cb92ef2a0a3bd4d56215632c474 /net-p2p/mldonkey-devel/files/patch-src__daemon__common__commonInteractive.ml
parent6fdf473cae06ccb4290ad2ea4016bfaf04ab3657 (diff)
Notes
Diffstat (limited to 'net-p2p/mldonkey-devel/files/patch-src__daemon__common__commonInteractive.ml')
-rw-r--r--net-p2p/mldonkey-devel/files/patch-src__daemon__common__commonInteractive.ml30
1 files changed, 30 insertions, 0 deletions
diff --git a/net-p2p/mldonkey-devel/files/patch-src__daemon__common__commonInteractive.ml b/net-p2p/mldonkey-devel/files/patch-src__daemon__common__commonInteractive.ml
new file mode 100644
index 000000000000..85a1bdf20571
--- /dev/null
+++ b/net-p2p/mldonkey-devel/files/patch-src__daemon__common__commonInteractive.ml
@@ -0,0 +1,30 @@
+--- ../mldonkey.orig/src/daemon/common/commonInteractive.ml Fri Dec 2 10:08:04 2005
++++ src/daemon/common/commonInteractive.ml Fri Dec 9 21:23:18 2005
+@@ -106,7 +106,7 @@
+ let file_id = Filename.basename temp_name in
+ let size = Int64.to_string (file_size file) in
+ let duration =
+- Date.time_to_string_long ((BasicSocket.last_time ()) - info.G.file_age)
++ string_of_int ((BasicSocket.last_time ()) - info.G.file_age)
+ in
+ let network = network_find_by_num info.G.file_network in
+ let filename = Filename.basename new_name in
+@@ -117,6 +117,7 @@
+ (Int64.to_string (file_size file))
+ (Md4.to_string info.G.file_md4)
+ in
++ begin try
+ MlUnix.fork_and_exec !!file_completed_cmd
+ [| (* keep those for compatibility *)
+ "";
+@@ -133,6 +134,10 @@
+ ("INCOMING", incoming);
+ ("NETWORK", network.network_name);
+ ("ED2K_HASH", ed2k_hash)]
++ with e ->
++ lprintf_nl "[cInt] Exception %s while executing %s"
++ (Printexc2.to_string e) !!file_completed_cmd
++ end
+
+ (********
+ These two functions 'file_commit' and 'file_cancel' should be the two only