Changeset 115


Ignore:
Timestamp:
06/16/06 14:46:34 (18 years ago)
Author:
bas
Message:

distro/examples/new_rack_pbsmon.py:

  • State down has topmost priority
Location:
trunk/pbs_swig/distro
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/pbs_swig/distro/CHANGES

    r112 r115  
    11=========== Version 2.9.1
    22        - Fixed a bug in new_rack_pbsmon.py. Counting of serial
    3           nodes was wrong.
     3          nodes was wrong and state down has topmost priority
    44
    55=========== Version 2.9.0
  • trunk/pbs_swig/distro/debian/changelog

    r114 r115  
     1pbs-python (2.9.1-5) unstable; urgency=low
     2
     3  * Down state has most priority. So display it
     4
     5 -- Bas van der Vlies <bas@rc.sara.nl>  Fri, 16 Jun 2006 14:44:48 +0200
     6
    17pbs-python (2.9.1-4) unstable; urgency=low
    28
  • trunk/pbs_swig/distro/examples/new_rack_pbsmon.py

    r113 r115  
    8686                state = node['state']
    8787                if string.find(state, ',') >= 0:                        # multiple states for a node?
    88                         state = string.split(state, ',')[-1]
     88                        state_list = string.split(state, ',')
     89                        if pbs.ND_down in state_list:
     90                                state = pbs.ND_down
     91                        else:
     92                                state = string.split(state, ',')[-1]
     93                               
    8994
    9095                state_char = PBS_STATES[state]
Note: See TracChangeset for help on using the changeset viewer.