From 8bc0440914cb83594e89a0c33507b0a7476b3627 Mon Sep 17 00:00:00 2001
From: Maxim Mamontov <faust@gts.dp.ua>
Date: Wed, 9 Feb 2011 14:10:25 +0200
Subject: [PATCH] =?utf8?q?=D0=9F=D1=80=D0=B8=D0=B1=D1=80=D0=B0=D0=BD=D0=BE?=
 =?utf8?q?=20=D0=B7=D0=B0=D0=B9=D0=B2=D1=83=20=D0=BF=D1=80=D0=B8=D0=B2?=
 =?utf8?q?=D0=B0=D1=82=D0=BD=D1=83=20=D0=B7=D0=BC=D1=96=D0=BD=D0=BD=D1=83?=
 =?utf8?q?=20=D1=96=D0=B7=20=D0=BA=D0=BB=D0=B0=D1=81=D1=83=20USER?=
MIME-Version: 1.0
Content-Type: text/plain; charset=utf8
Content-Transfer-Encoding: 8bit

---
 projects/stargazer/user.cpp | 10 ++++------
 projects/stargazer/user.h   |  2 --
 2 files changed, 4 insertions(+), 8 deletions(-)

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<double>         & cash;
     USER_PROPERTY<DIR_TRAFF>      & up;
-- 
2.44.2