From 17b4db15ed0543099193ec337d064abde39e922e Mon Sep 17 00:00:00 2001
From: chenshijun <csj_sky@126.com>
Date: 星期四, 24 一月 2019 13:49:30 +0800
Subject: [PATCH] test

---
 QiaoJiaSystem/YoloServer/main.cpp |   18 +++++++++---------
 1 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/QiaoJiaSystem/YoloServer/main.cpp b/QiaoJiaSystem/YoloServer/main.cpp
index 438ff3e..a44a900 100644
--- a/QiaoJiaSystem/YoloServer/main.cpp
+++ b/QiaoJiaSystem/YoloServer/main.cpp
@@ -24,14 +24,14 @@
 //    adapter->activate();
 //    ich->waitForShutdown();
 
-    if (argc < 3) {
-        ERR("argc error");
-        return -1;
-    }
+//    if (argc < 3) {
+//        ERR("argc error");
+//        return -1;
+//    }
 
-    int gpuindex = atoi(argv[1]);
-    int poolNum = atoi(argv[2]);
-    int portNum = atoi(argv[3]);
+    int gpuindex = 1;
+    int poolNum = 1;
+    int portNum = 10003;
 
     appPref.setIntData("gpu.index", gpuindex);
     appPref.setFloatData("thresh.detect", 0.7);
@@ -39,8 +39,8 @@
 
     IceRpcServer<YoloDetectServerI> server("yoloServer", portNum, "tcp");
     server.setMessageSizeMax(1024 * 1024 * 50);
-    server.setPoolInitSize(poolNum);
-    server.setPoolMaxSize(poolNum);
+    server.setPoolInitSize(1);
+    server.setPoolMaxSize(1);
     server.runWaitShutDown();
     return 0;
 }

--
Gitblit v1.8.0