la.java 1.03 KB
import com.google.android.gms.common.util.zze;
import com.google.android.gms.common.util.zzi;
import com.google.android.gms.tagmanager.zzbo;

public final class la
  implements kk
{
  private final long a = 2000L;
  private final int b = 60;
  private double c = this.b;
  private long d;
  private final Object e = new Object();
  private final zze f = zzi.zzzc();
  
  private la() {}
  
  public la(byte paramByte)
  {
    this();
  }
  
  public final boolean a()
  {
    synchronized (this.e)
    {
      long l = this.f.currentTimeMillis();
      if (this.c < this.b)
      {
        double d1 = (l - this.d) / this.a;
        if (d1 > 0.0D) {
          this.c = Math.min(this.b, d1 + this.c);
        }
      }
      this.d = l;
      if (this.c >= 1.0D)
      {
        this.c -= 1.0D;
        return true;
      }
      zzbo.zzbh("No more tokens available.");
      return false;
    }
  }
}


/* Location:              /home/merong/decompile/hackery-dex2jar.jar!/la.class
 * Java compiler version: 6 (50.0)
 * JD-Core Version:       0.7.1
 */