Ejemplo n.º 1
0
        private void method_8(object object_0, Class58 class58_0)
        {
            GClass78 gclass78 = (GClass78)object_0;

            if (!this.bool_1)
            {
                this.method_5("Network lost");
            }
            if (!this.bool_0)
            {
                this.gclass78_0.method_0();
            }
            this.gstruct3_0 = gclass78.DownloadSpeed;
            ulong ulong0 = this.gstruct3_0.ulong_0;

            if (ulong0 > this.MaxSpeed)
            {
                this.MaxSpeed = ulong0;
            }
            try
            {
                this.timeSpan_1 = GStruct3.smethod_1(this.dataSize_0.Diff(gclass78.TotalDownloadedCurrentGame), this.gstruct3_0);
                this.timeSpan_2 = GStruct3.smethod_1(this.dataSize_1.Diff(gclass78.TotalDataDownloaded), this.gstruct3_0);
                this.timeSpan_0 = GStruct3.smethod_1(new DataSize((ulong)class58_0.long_2).Diff(new DataSize((ulong)class58_0.long_1)), this.gstruct3_0);
                this.int_4      = GClass80.smethod_0(this.dataSize_0, gclass78.TotalDownloadedCurrentGame);
                this.int_5      = GClass80.smethod_0(this.dataSize_1, gclass78.TotalDataDownloaded);
                this.int_3      = (int)((double)class58_0.long_1 / (double)class58_0.long_2 * 100.0);
                if (this.int_1++ == 8)
                {
                    this.list_0.Add((int)this.gstruct3_0.ulong_0);
                    this.int_1 = 0;
                }
                this.method_16(this.int_4, this.int_5, this.int_3, this.timeSpan_1, this.timeSpan_2, this.timeSpan_0, this.gstruct3_0, (GClass30)null);
            }
            catch
            {
            }
        }
Ejemplo n.º 2
0
        private void method_11(Class58 class58_0)
        {
            DataSize dataSize = new DataSize((ulong)class58_0.long_0);

            this.dateTime_0 = DateTime.Now;
            this.TotalDownloadedCurrentGame += dataSize;
            this.TotalDataDownloaded        += dataSize;
            this.dataSize_2 += dataSize;
            this.timeSpan_0  = DateTime.Now - this.dateTime_1;
            if (this.timeSpan_0.TotalSeconds >= 1.0)
            {
                this.DownloadSpeed = new GStruct3(this.dataSize_2, this.timeSpan_0);
                this.dataSize_2    = new DataSize(0UL);
                this.dateTime_1    = DateTime.Now;
            }
            // ISSUE: reference to a compiler-generated field
            EventHandler <Class58> eventHandler2 = this.eventHandler_2;

            if (eventHandler2 == null)
            {
                return;
            }
            eventHandler2.BeginInvoke((object)this, class58_0, (AsyncCallback)null, (object)null);
        }