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/sge/sge_queue_
22 22
#
23 23
#   env.sge_settings - Path to SGE settings.sh script, defaults to /opt/sge/default/common/settings.sh
24 24
#   env.title        - Graph title, overrides "SGE Queue state".
25
#   env.options      - Additional command line options to qstat. 
25
#   env.options      - Additional command line options to qstat.
26 26
#
27 27
# Revisions:
28 28
#   v1.0 2009-07-19
......
93 93
    if which qstat > /dev/null; then
94 94
        echo "yes"
95 95
        exit 0
96
    else 
96
    else
97 97
        echo "no"
98 98
        exit 1
99 99
    fi
......
102 102
# env.options
103 103
OPTIONS="-g c -q $QUEUE $options"
104 104

  
105
# qstat -g c example output: 
106
# CLUSTER QUEUE                   CQLOAD   USED    RES  AVAIL  TOTAL aoACDS  cdsuE 
105
# qstat -g c example output:
106
# CLUSTER QUEUE                   CQLOAD   USED    RES  AVAIL  TOTAL aoACDS  cdsuE
107 107
# --------------------------------------------------------------------------------
108 108
# all.q                             0.00     16      8     48     64      0      0
109 109
qstat $OPTIONS | tail -n 1 | awk '{print "unavailable.value " $8 "\nreserved.value " $4 "\nused.value " $3 "\nfree.value " $5-$4}'

Formats disponibles : Unified diff