From: Maxim Mamontov Date: Wed, 9 Feb 2011 12:10:25 +0000 (+0200) Subject: Прибрано зайву приватну змінну із класу USER X-Git-Tag: 2.407-rc3~179 X-Git-Url: https://git.stg.codes/stg.git/commitdiff_plain/8bc0440914cb83594e89a0c33507b0a7476b3627?ds=sidebyside;hp=-c Прибрано зайву приватну змінну із класу USER --- 8bc0440914cb83594e89a0c33507b0a7476b3627 diff --git a/projects/stargazer/user.cpp b/projects/stargazer/user.cpp index 6e77f0a5..38bab82c 100644 --- a/projects/stargazer/user.cpp +++ b/projects/stargazer/user.cpp @@ -123,8 +123,6 @@ currIP.AddAfterNotifier(&ipNotifier); lastScanMessages = 0; -writeFreeMbTraffCost = settings->GetWriteFreeMbTraffCost(); - pthread_mutexattr_t attr; pthread_mutexattr_init(&attr); pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); @@ -206,8 +204,6 @@ currIP.AddAfterNotifier(&ipNotifier); lastScanMessages = 0; -writeFreeMbTraffCost = settings->GetWriteFreeMbTraffCost(); - property.SetProperties(u.property); pthread_mutexattr_t attr; @@ -770,7 +766,8 @@ sessionUpload[dir] += len; //Add detailed stat -if (!writeFreeMbTraffCost && freeMb.ConstData() >= 0) +if (!settings->GetWriteFreeMbTraffCost() && + freeMb.ConstData() >= 0) cost = 0; #ifdef TRAFF_STAT_WITH_PORTS @@ -860,7 +857,8 @@ sessionDownload[dir] += len; //Add detailed stat -if (!writeFreeMbTraffCost && freeMb.ConstData() >= 0) +if (!settings->GetWriteFreeMbTraffCost() && + freeMb.ConstData() >= 0) cost = 0; #ifdef TRAFF_STAT_WITH_PORTS diff --git a/projects/stargazer/user.h b/projects/stargazer/user.h index 3472ba4b..1c84ba1c 100644 --- a/projects/stargazer/user.h +++ b/projects/stargazer/user.h @@ -248,8 +248,6 @@ private: time_t lastWriteStat; // ÷ÒÅÍÑ ÐÏÓÌÅÄÎÅÊ ÚÁÐÉÓÉ ÓÔÁÔÉÓÔÉËÉ time_t lastWriteDeatiledStat; // ÷ÒÅÍÑ ÐÏÓÌÅÄÎÅÊ ÚÁÐÉÓÉ ÄÅÔÁÌØÎÏÊ ÓÔÁÔÉÓÔÉËÉ - bool writeFreeMbTraffCost; - // Properties USER_PROPERTY & cash; USER_PROPERTY & up;