diff options
author | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2002-07-21 17:26:02 +0800 |
---|---|---|
committer | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2002-07-21 17:26:02 +0800 |
commit | e9a7b75babb76e1a3341161bcb6e80f3753b83c7 (patch) | |
tree | 04debdc816cd5405bba70904a1eea16ca6fca663 /mbbsd/osdep.c | |
parent | 1428a82d1644166fdaa5285c67f236ac02687818 (diff) | |
download | pttbbs-e9a7b75babb76e1a3341161bcb6e80f3753b83c7.tar pttbbs-e9a7b75babb76e1a3341161bcb6e80f3753b83c7.tar.gz pttbbs-e9a7b75babb76e1a3341161bcb6e80f3753b83c7.tar.bz2 pttbbs-e9a7b75babb76e1a3341161bcb6e80f3753b83c7.tar.lz pttbbs-e9a7b75babb76e1a3341161bcb6e80f3753b83c7.tar.xz pttbbs-e9a7b75babb76e1a3341161bcb6e80f3753b83c7.tar.zst pttbbs-e9a7b75babb76e1a3341161bcb6e80f3753b83c7.zip |
indent -i4
fix indent's word error
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@429 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/osdep.c')
-rw-r--r-- | mbbsd/osdep.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/mbbsd/osdep.c b/mbbsd/osdep.c index d99395c7..f1b65242 100644 --- a/mbbsd/osdep.c +++ b/mbbsd/osdep.c @@ -1,11 +1,11 @@ -/* $Id: osdep.c,v 1.4 2002/07/05 17:10:27 in2 Exp $ */ +/* $Id: osdep.c,v 1.5 2002/07/21 09:26:02 in2 Exp $ */ #include "bbs.h" #if __FreeBSD__ #include <kvm.h> -int +int cpuload(char *str) { double l[3] = {-1, -1, -1}; @@ -21,7 +21,7 @@ cpuload(char *str) return (int)l[0]; } -double +double swapused(long *total, long *used) { double percent = -1; @@ -44,7 +44,7 @@ swapused(long *total, long *used) } #else -int +int cpuload(char *str) { double l[3] = {-1, -1, -1}; @@ -64,7 +64,7 @@ cpuload(char *str) return (int)l[0]; } -double +double swapused(long *total, long *used) { double percent = -1; |