!5 [sync] PR-2: fix wrk --version/-v error
From: @openeuler-sync-bot Reviewed-by: @zengwefeng Signed-off-by: @zengwefeng
This commit is contained in:
commit
5b98f9cee6
32
fix-wrk-version-or-v-error.patch
Normal file
32
fix-wrk-version-or-v-error.patch
Normal file
@ -0,0 +1,32 @@
|
||||
From f5c40ae2cf0306bc0a3d4f937923dd381accdcf7 Mon Sep 17 00:00:00 2001
|
||||
From: wang_yue111 <648774160@qq.com>
|
||||
Date: Thu, 14 Oct 2021 10:17:03 +0800
|
||||
Subject: [PATCH] fix wrk --version/-v error
|
||||
|
||||
---
|
||||
src/wrk.h | 3 +--
|
||||
1 file changed, 1 insertion(+), 2 deletions(-)
|
||||
|
||||
diff --git a/src/wrk.h b/src/wrk.h
|
||||
index 2d0ac84..20e79ec 100644
|
||||
--- a/src/wrk.h
|
||||
+++ b/src/wrk.h
|
||||
@@ -16,14 +16,13 @@
|
||||
#include "ae.h"
|
||||
#include "http_parser.h"
|
||||
|
||||
+#define VERSION "4.1.0"
|
||||
#define RECVBUF 8192
|
||||
|
||||
#define MAX_THREAD_RATE_S 10000000
|
||||
#define SOCKET_TIMEOUT_MS 2000
|
||||
#define RECORD_INTERVAL_MS 100
|
||||
|
||||
-extern const char *VERSION;
|
||||
-
|
||||
typedef struct {
|
||||
pthread_t thread;
|
||||
aeEventLoop *loop;
|
||||
--
|
||||
2.23.0
|
||||
|
||||
6
wrk.spec
6
wrk.spec
@ -1,11 +1,12 @@
|
||||
Name: wrk
|
||||
Version: 4.1.0
|
||||
Release: 1
|
||||
Release: 2
|
||||
Summary: Modern HTTP benchmarking tool
|
||||
License: Apache-2.0
|
||||
URL: https://github.com/wg/wrk
|
||||
Source0: https://github.com/wg/wrk/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
||||
Patch0: Make-the-debug-package-compile.patch
|
||||
Patch1: fix-wrk-version-or-v-error.patch
|
||||
BuildRequires: pkgconf openssl-devel
|
||||
%description
|
||||
wrk is a modern HTTP benchmarking tool capable of generating significant
|
||||
@ -30,5 +31,8 @@ install -D -m 0755 wrk %{buildroot}%{_bindir}/wrk
|
||||
%{_bindir}/wrk
|
||||
|
||||
%changelog
|
||||
* Thu Oct 14 2021 wangyue <wangyue92@huawei.com> - 4.1.0-2
|
||||
- fix wrk --version/-v error
|
||||
|
||||
* Mon Jun 28 2021 huanghaitao <huanghaitao8@huawei.com> - 4.1.0-1
|
||||
- Package init
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user