- Fix error in previous patch that was causing threads to be included in the process count
- Bump PORTREVISION
This commit is contained in:
parent
83de6e51d7
commit
dae081897f
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=379188
2 changed files with 3 additions and 3 deletions
|
@ -3,7 +3,7 @@
|
|||
|
||||
PORTNAME= snmp
|
||||
PORTVERSION= 5.7.3
|
||||
PORTREVISION= 3
|
||||
PORTREVISION= 4
|
||||
CATEGORIES= net-mgmt ipv6
|
||||
MASTER_SITES= SF/net-${PORTNAME}/net-${PORTNAME}/${PORTVERSION}
|
||||
PKGNAMEPREFIX= net-
|
||||
|
|
|
@ -50,7 +50,7 @@ index d99cc7d..e853779 100644
|
|||
extern int count_processes(void);
|
||||
-extern int swrun_count_processes(void);
|
||||
+#if USING_HOST_DATA_ACCESS_SWRUN_MODULE
|
||||
+static int count_kthreads = 1;
|
||||
+static int count_kthreads = 0;
|
||||
+
|
||||
+static void parse_count_kthreads(const char *token, const char *line)
|
||||
+{
|
||||
|
@ -77,7 +77,7 @@ index d99cc7d..e853779 100644
|
|||
case HRSYS_PROCS:
|
||||
#if USING_HOST_DATA_ACCESS_SWRUN_MODULE
|
||||
- long_return = swrun_count_processes();
|
||||
+ long_return = swrun_count_processes(1);
|
||||
+ long_return = swrun_count_processes(count_kthreads);
|
||||
#elif USING_HOST_HR_SWRUN_MODULE
|
||||
long_return = count_processes();
|
||||
#else
|
||||
|
|
Loading…
Reference in a new issue