Changeset 904

Show
Ignore:
Timestamp:
04/11/03 14:33:13 (22 years ago)
Author:
jalet
Message:

Displays WARN or DENY if datelimit is not set too.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/bin/repykota

    r900 r904  
    2323# 
    2424# $Log$ 
     25# Revision 1.22  2003/04/11 12:33:13  jalet 
     26# Displays WARN or DENY if datelimit is not set too. 
     27# 
    2528# Revision 1.21  2003/04/10 21:47:20  jalet 
    2629# Job history added. Upgrade script neutralized for now ! 
     
    195198                if now >= datelimit : 
    196199                    datelimit = "DENY" 
     200            elif pagecounter >= hardlimit :         
     201                datelimit = "DENY" 
     202            elif pagecounter >= softlimit :     
     203                datelimit = "WARN" 
    197204            else :     
    198205                datelimit = "" 
     
    200207            print "%-10.10s %c %8i %8s %8s %10s %9i" % (name, reached, pagecounter, str(softlimit), str(hardlimit), str(datelimit)[:10], lifepagecounter) 
    201208            return lifepagecounter 
    202          
    203209                     
    204210if __name__ == "__main__" :