summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryangwei <[email protected]>2019-08-20 18:52:31 +0800
committeryangwei <[email protected]>2019-08-20 18:52:31 +0800
commit247d32f00b632c64e40621fae9c07a6cc1f32bde (patch)
tree7edd18e16df96971cefdf03472d45b62cd0f90de
parent904ea177e05f53cbc194f353c2d5822d23f3e15d (diff)
UPDATE:marsio instance name格式更新为tcpburst_[pid]
-rw-r--r--src/tcpreplay.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tcpreplay.c b/src/tcpreplay.c
index f5e9dc8..e246c73 100644
--- a/src/tcpreplay.c
+++ b/src/tcpreplay.c
@@ -1088,7 +1088,8 @@ int stream_burst_marsio_init(void)
marsio_option_set(tcpburst_marsio4_instance, MARSIO_OPT_THREAD_MASK, &marsio_cpu_mask, sizeof(long));
srand(time(NULL));
- snprintf(app_name, 64, "%s_%c%c%c", "tcpburst", 'a'+random()%26, 'a'+random()%26,'a'+random()%26);
+ //snprintf(app_name, 64, "%s_%c%c%c", "tcpburst", 'a'+random()%26, 'a'+random()%26,'a'+random()%26);
+ snprintf(app_name, 64, "%s_%d", "tcpburst", getpid());
if(marsio_init(tcpburst_marsio4_instance, app_name) < 0){
fprintf(stderr,"%s\n","marsio_init() error!\n");