Changeset 843 for pykota/trunk/bin/repykota
- Timestamp:
- 03/10/03 00:56:21 (21 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/bin/repykota
r842 r843 17 17 # 18 18 # $Log$ 19 # Revision 1.16 2003/03/09 23:56:21 jalet 20 # Option noquota added to do accounting only. 21 # 19 22 # Revision 1.15 2003/03/09 23:39:14 jalet 20 23 # Simplified translations. … … 159 162 lifepagecounter = quota["lifepagecounter"] 160 163 pagecounter = quota["pagecounter"] 161 softlimit = quota["softlimit"] or 0162 hardlimit = quota["hardlimit"] or 0164 softlimit = quota["softlimit"] 165 hardlimit = quota["hardlimit"] 163 166 datelimit = quota["datelimit"] 164 167 if datelimit is not None : … … 169 172 else : 170 173 datelimit = "" 171 reached = (( pagecounter >= softlimit) and "+") or "-"172 print "%-10.10s %c %8i %8 i %8i %10s %9i" % (name, reached, pagecounter, softlimit, hardlimit, str(datelimit)[:10], lifepagecounter)174 reached = ((softlimit is not None) and (pagecounter >= softlimit) and "+") or "-" 175 print "%-10.10s %c %8i %8s %8s %10s %9i" % (name, reached, pagecounter, str(softlimit), str(hardlimit), str(datelimit)[:10], lifepagecounter) 173 176 return lifepagecounter 174 177