git.stg.codes
/
stg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Format pay day as int rather then char.
[stg.git]
/
projects
/
stargazer
/
user_impl.cpp
diff --git
a/projects/stargazer/user_impl.cpp
b/projects/stargazer/user_impl.cpp
index 22afa7f87460c24432f0384c77d122e24f0a9078..7932198783197138cde33d1d7ef664e1af960f7f 100644
(file)
--- a/
projects/stargazer/user_impl.cpp
+++ b/
projects/stargazer/user_impl.cpp
@@
-115,6
+115,7
@@
USER_IMPL::USER_IMPL(const SETTINGS * s,
userdata8(property.userdata8),
userdata9(property.userdata9),
passiveNotifier(this),
userdata8(property.userdata8),
userdata9(property.userdata9),
passiveNotifier(this),
+ disabledNotifier(this),
tariffNotifier(this),
cashNotifier(this),
ipNotifier(this)
tariffNotifier(this),
cashNotifier(this),
ipNotifier(this)
@@
-690,6
+691,8
@@
DIR_TRAFF zeroSesssion;
sessionUpload = zeroSesssion;
sessionDownload = zeroSesssion;
sessionUpload = zeroSesssion;
sessionDownload = zeroSesssion;
+sessionUploadModTime = stgTime;
+sessionDownloadModTime = stgTime;
}
//-----------------------------------------------------------------------------
void USER_IMPL::PrintUser() const
}
//-----------------------------------------------------------------------------
void USER_IMPL::PrintUser() const
@@
-851,10
+854,10
@@
int64_t threshold = tariff->GetThreshold(dir) * 1024 * 1024;
dt[dir] += len;
int tt = tariff->GetTraffType();
dt[dir] += len;
int tt = tariff->GetTraffType();
-if (tt == TRAFF_UP ||
- tt == TRAFF_UP_DOWN ||
+if (tt == T
ARIFF::T
RAFF_UP ||
+ tt == T
ARIFF::T
RAFF_UP_DOWN ||
// Check NEW traff data
// Check NEW traff data
- (tt == TRAFF_MAX && dt[dir] > down.ConstData()[dir]))
+ (tt == T
ARIFF::T
RAFF_MAX && dt[dir] > down.ConstData()[dir]))
{
double dc = 0;
if (traff < threshold &&
{
double dc = 0;
if (traff < threshold &&
@@
-895,6
+898,7
@@
if (tt == TRAFF_UP ||
up = dt;
sessionUpload[dir] += len;
up = dt;
sessionUpload[dir] += len;
+sessionUploadModTime = stgTime;
//Add detailed stat
//Add detailed stat
@@
-943,10
+947,10
@@
int64_t threshold = tariff->GetThreshold(dir) * 1024 * 1024;
dt[dir] += len;
int tt = tariff->GetTraffType();
dt[dir] += len;
int tt = tariff->GetTraffType();
-if (tt == TRAFF_DOWN ||
- tt == TRAFF_UP_DOWN ||
+if (tt == T
ARIFF::T
RAFF_DOWN ||
+ tt == T
ARIFF::T
RAFF_UP_DOWN ||
// Check NEW traff data
// Check NEW traff data
- (tt == TRAFF_MAX && up.ConstData()[dir] <= dt[dir]))
+ (tt == T
ARIFF::T
RAFF_MAX && up.ConstData()[dir] <= dt[dir]))
{
double dc = 0;
if (traff < threshold &&
{
double dc = 0;
if (traff < threshold &&
@@
-986,6
+990,7
@@
if (tt == TRAFF_DOWN ||
down = dt;
sessionDownload[dir] += len;
down = dt;
sessionDownload[dir] += len;
+sessionDownloadModTime = stgTime;
//Add detailed stat
//Add detailed stat