zztb.java 1.29 KB
package com.google.android.gms.internal;

import com.google.android.gms.common.util.zze;

public class zztb
{
  private final long a;
  private final int b;
  private double c;
  private long d;
  private final Object e = new Object();
  private final String f;
  private final zze g;
  
  public zztb(int paramInt, long paramLong, String paramString, zze paramzze)
  {
    this.b = paramInt;
    this.c = this.b;
    this.a = paramLong;
    this.f = paramString;
    this.g = paramzze;
  }
  
  public zztb(String paramString, zze paramzze)
  {
    this(60, 2000L, paramString, paramzze);
  }
  
  public boolean zzpV()
  {
    synchronized (this.e)
    {
      long l = this.g.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;
      }
      String str = this.f;
      zztc.zzbh(String.valueOf(str).length() + 34 + "Excessive " + str + " detected; call ignored.");
      return false;
    }
  }
}


/* Location:              /home/merong/decompile/hackery-dex2jar.jar!/com/google/android/gms/internal/zztb.class
 * Java compiler version: 6 (50.0)
 * JD-Core Version:       0.7.1
 */