mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-12 07:27:57 +00:00
Call fflush() after printing sensor values. This allows to use mbmon
in scripts, etc.
This commit is contained in:
parent
08f03c80c5
commit
b5bf6c927d
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=161291
@ -7,7 +7,7 @@
|
||||
|
||||
PORTNAME?= mbmon
|
||||
PORTVERSION= 205
|
||||
PORTREVISION?= 2
|
||||
PORTREVISION?= 3
|
||||
CATEGORIES= sysutils
|
||||
MASTER_SITES= http://www.nt.phys.kyushu-u.ac.jp/shimizu/download/xmbmon/
|
||||
DISTNAME= xmbmon${PORTVERSION}
|
||||
|
@ -1,7 +1,5 @@
|
||||
$FreeBSD$
|
||||
|
||||
--- mbmon.c Fri Aug 13 10:23:32 2004
|
||||
+++ mbmon.c Tue Dec 27 16:59:48 2005
|
||||
--- mbmon.c.orig Fri Aug 13 09:23:32 2004
|
||||
+++ mbmon.c Wed May 3 21:32:44 2006
|
||||
@@ -315,7 +315,7 @@
|
||||
|
||||
name = argv[0];
|
||||
@ -11,3 +9,11 @@ $FreeBSD$
|
||||
#else
|
||||
while ((ch = getopt(argc,argv,"VSIAfdDYe:p:c:T:F:tunNirhP:")) != -1) {
|
||||
#endif
|
||||
@@ -640,6 +640,7 @@
|
||||
else if (fanspeed == 7)
|
||||
fprintf(out, "%4d\n%4d\n%4d\n", rot1, rot2, rot3);
|
||||
}
|
||||
+ fflush(out);
|
||||
if (port) {
|
||||
#ifdef LOGGING
|
||||
if (nfd)
|
||||
|
Loading…
Reference in New Issue
Block a user