show the final row of bucket analysis
smbaker [Thu, 1 Nov 2012 05:31:47 +0000 (22:31 -0700)]
apps/gacks/gacksenforce.py

index 0219103..80f8472 100644 (file)
@@ -150,6 +150,10 @@ class GacksEnforcer:
 
             t = t + BUCKET_QUANTUM
 
+        # add a final row to results to show after the last reservation
+        bucketAccount.apply_inRate(t)
+        results.append( (t, bucketAccount.balance, 0) )
+
         return results
 
     def check_handles(self, name, handles, account, reservationKind):