jo.java 1.35 KB
import com.google.android.gms.common.util.zze;
import com.google.android.gms.tagmanager.zzbo;

public final class jo
  implements kk
{
  private final long a = 900000L;
  private final long b = 5000L;
  private final int c = 5;
  private double d = Math.min(1, 5);
  private long e;
  private final Object f = new Object();
  private final String g;
  private final zze h;
  
  public jo(String paramString, zze paramzze)
  {
    this.g = paramString;
    this.h = paramzze;
  }
  
  public final boolean a()
  {
    synchronized (this.f)
    {
      long l = this.h.currentTimeMillis();
      if (l - this.e < this.b)
      {
        String str1 = this.g;
        zzbo.zzbh(String.valueOf(str1).length() + 34 + "Excessive " + str1 + " detected; call ignored.");
        return false;
      }
      if (this.d < this.c)
      {
        double d1 = (l - this.e) / this.a;
        if (d1 > 0.0D) {
          this.d = Math.min(this.c, d1 + this.d);
        }
      }
      this.e = l;
      if (this.d >= 1.0D)
      {
        this.d -= 1.0D;
        return true;
      }
    }
    String str2 = this.g;
    zzbo.zzbh(String.valueOf(str2).length() + 34 + "Excessive " + str2 + " detected; call ignored.");
    return false;
  }
}


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