From e0aea3742aed09a0a9ed384ccd7db203b6efc650 Mon Sep 17 00:00:00 2001
From: wangzhengquan <wangzhengquan85@126.com>
Date: 星期六, 20 二月 2021 14:43:52 +0800
Subject: [PATCH] update

---
 test_net_socket/test_net_mod_socket.cpp |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diff --git a/test_net_socket/test_net_mod_socket.cpp b/test_net_socket/test_net_mod_socket.cpp
index e036682..56115f8 100644
--- a/test_net_socket/test_net_mod_socket.cpp
+++ b/test_net_socket/test_net_mod_socket.cpp
@@ -75,6 +75,11 @@
 	}
 }
 
+void start_resycle() {
+  shm_mm_wrapper_start_resycle();
+}
+
+
 // 鎵撳嵃鎺ュ彈鍒扮殑璁㈤槄娑堟伅
 void *print_sub_msg(void *sockt) {
   pthread_detach(pthread_self());
@@ -370,7 +375,8 @@
   double difftime = end.tv_sec * 1000000 + end.tv_usec - (start.tv_sec * 1000000 + start.tv_usec);
   long diffsec = (long) (difftime/1000000);
   long diffusec = difftime - diffsec*1000000;
-  fprintf(stderr,"鍙戦�佹暟鐩�: %ld, 鐢ㄦ椂: (%ld sec %ld usec), 骞冲潎: %f\n", total, diffsec, diffusec, difftime/total );
+  fprintf(stderr,"鍙戦�佹暟鐩�:%ld, 鎴愬姛鏁扮洰: %ld, 鐢ㄦ椂: (%ld sec %ld usec), 骞冲潎: %f\n", 
+    SCALE*node_arr_size, total, diffsec, diffusec, difftime/total );
   // fflush(stdout);
  
 }
@@ -601,6 +607,9 @@
      
     test_net_pub(opt.publist);
   }
+  else if (strcmp("start_resycle", opt.fun) == 0) {
+    start_resycle();
+  }
   
   else {
     usage(argv[0]);

--
Gitblit v1.8.0