             amount = 0.0;
     }
 
-    public function update(n:Number):Boolean
+    public override function update(n:Number):Boolean
     {
         age();
         amount += n;


class RateLimit
{
    private var amount:Number;
    private var capacity:Number;
    private var time:Number;
    private var last_update:uint;

    public function RateLimit(capacity:Number, time:Number)
    {
        this.amount = 0.0;
        /* capacity / time is the rate we are aiming for. */

        // Milliseconds.
        private const FACILITATOR_POLL_INTERVAL:int = 10000;

        // Bytes per second. Set to undefined to disable limit.
        public const RATE_LIMIT:Number = 10 * 1024;
        // Seconds.
        private const RATE_LIMIT_HISTORY:Number = 5.0;
