Projet

Général

Profil

Révision 17f78427

ID17f784270ae966ee9a13e9f5104a5b8f925b639e
Parent ef851f0c
Enfant d4320aea, 5b2396a9

Ajouté par Lars Kruse il y a plus de 7 ans

Whitespace cleanup

  • remove trailing whitespace
  • remove empty lines at the end of files

Voir les différences:

plugins/condor/condor_ops_
5 5
#
6 6
# Author: Šarūnas Burdulis, sarunas(a)mail.saabnet.com, 2008
7 7
#
8
# Runs 'condor_status -server', 
8
# Runs 'condor_status -server',
9 9
# gets totals for MIPS and KFLOPS.
10 10
#
11 11
# Parameters understood:
......
19 19
# 	env.condor_status - Path to condor_status executable,
20 20
#		defaults to /usr/local/condor/bin/condor_status
21 21
# 	env.constraint - Condor ClassAds constraint(s), as they are
22
#		specified on the condor_status command line. For example, 
22
#		specified on the condor_status command line. For example,
23 23
#		to monitor 64-bit Linux nodes only, set:
24 24
#		env.constraint 'arch=="x86_64" && opsys=="linux"'
25 25
#
......
50 50
else
51 51
    CONS=
52 52
fi
53
 
53

  
54 54
if [ "$1" = "autoconf" ]; then
55 55
    echo "no"
56 56
    exit 1
......
75 75
	echo 'mips_cur.min 0'
76 76
	echo 'mips_cur.max 200000'
77 77
	echo 'mips_cur.type GAUGE'
78
	echo "mips_cur.info Total (millions of integer operations)/s in Claimed nodes" 
78
	echo "mips_cur.info Total (millions of integer operations)/s in Claimed nodes"
79 79
	echo 'mips_max.label MIPS max. possible'
80 80
	echo 'mips_max.draw LINE'
81 81
	echo 'mips_max.min 0'
82 82
	echo 'mips_max.max 200000'
83 83
	echo 'mips_max.type GAUGE'
84
	echo "mips_max.info Total capability in (millions of integer operations)/s" 
84
	echo "mips_max.info Total capability in (millions of integer operations)/s"
85 85
	echo 'mflops_cur.label MFLOPS claimed'
86 86
	echo 'mflops_cur.draw LINE2'
87 87
	echo 'mflops_cur.min 0'
88 88
	echo 'mflops_cur.max 200000'
89 89
	echo 'mflops_cur.type GAUGE'
90
	echo "mflops_cur.info Total (millions of floating point operations)/s in Claimed nodes" 
90
	echo "mflops_cur.info Total (millions of floating point operations)/s in Claimed nodes"
91 91
	echo 'mflops_max.label MFLOPS max. possible'
92 92
	echo 'mflops_max.draw LINE'
93 93
	echo 'mflops_max.min 0'
94 94
	echo 'mflops_max.max 200000'
95 95
	echo 'mflops_max.type GAUGE'
96
	echo "mflops_max.info Total capability in (millions of floating point operations)/s" 
96
	echo "mflops_max.info Total capability in (millions of floating point operations)/s"
97 97
	exit 0
98 98
fi
99 99

  
100 100
# max possible:
101
#condor_status -cons 'arch=="x86_64" && opsys=="linux"' -totals -server         
101
#condor_status -cons 'arch=="x86_64" && opsys=="linux"' -totals -server
102 102
#      Machines Avail  Memory        Disk        MIPS      KFLOPS
103 103
# Total      30    30   48960   257925730      104576    31092042
104 104
eval $CS $CONS -totals -server | awk 'BEGIN { mipsc=0; mflopsc=0 } /Total/ {mips = $6; kflops = $7; mflops = int(kflops/1000) } END {print "mips_max.value " mips "\nmflops_max.value " mflops}'

Formats disponibles : Unified diff