1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-03 06:04:53 +00:00

Fix the check_swap again.

PR:		219068
Sponsored by:	Absolight
This commit is contained in:
Mathieu Arnold 2017-08-29 16:06:05 +00:00
parent 247602fade
commit 049f39e99d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=448927
2 changed files with 10 additions and 1 deletions

View File

@ -3,7 +3,7 @@
PORTNAME= nagios-plugins
PORTVERSION= 2.2.1
PORTREVISION= 2
PORTREVISION= 3
PORTEPOCH= 1
CATEGORIES= net-mgmt
MASTER_SITES= https://www.nagios-plugins.org/download/ \

View File

@ -16,3 +16,12 @@
elif ps axwwo 'stat comm vsz rss user uid pid ppid args cgroup:256' 2>/dev/null | \
egrep -i "^ *STAT +[UCOMAND]+ +VSZ +RSS +USER +UID +PID +PPID +COMMAND +CGROUP" > /dev/null
then
@@ -23798,7 +23807,7 @@ then
if $PATH_TO_SWAPINFO -k 2>/dev/null | egrep -i "^Device +1K-blocks +Used +Avail" >/dev/null
then
- ac_cv_swap_format="%*s %f %*d %f"
+ ac_cv_swap_format="%*s %lf %*d %lf"
ac_cv_swap_conv=1024
{ $as_echo "$as_me:$LINENO: result: using FreeBSD format swapinfo" >&5
$as_echo "using FreeBSD format swapinfo" >&6; }