git.stg.codes
/
stg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update ChangeLog.
[stg.git]
/
projects
/
stargazer
/
plugins
/
store
/
files
/
file_store.cpp
diff --git
a/projects/stargazer/plugins/store/files/file_store.cpp
b/projects/stargazer/plugins/store/files/file_store.cpp
index d5cfefaba6fb799bfa5e5f7070871660e63acd54..e23b2030ab92470fe418550a80a51b832b061795 100644
(file)
--- a/
projects/stargazer/plugins/store/files/file_store.cpp
+++ b/
projects/stargazer/plugins/store/files/file_store.cpp
@@
-1471,10
+1471,7
@@
if (conf.ReadString("ChangePolicy", &str, "allow") < 0)
else
td->tariffConf.changePolicy = TARIFF::StringToChangePolicy(str);
else
td->tariffConf.changePolicy = TARIFF::StringToChangePolicy(str);
-if (conf.ReadString("ChangePolicyTimeout", &str, "1970-01-01 00:00:00") < 0)
- td->tariffConf.changePolicyTimeout = 0;
-else
- td->tariffConf.changePolicyTimeout = readTime(str);
+conf.ReadTime("ChangePolicyTimeout", &td->tariffConf.changePolicyTimeout, 0);
return 0;
}
//-----------------------------------------------------------------------------
return 0;
}
//-----------------------------------------------------------------------------
@@
-1609,7
+1606,7
@@
if (e)
printfd(__FILE__, "FILES_STORE::WriteDetailStat - chmod/chown failed for user '%s'. Error: '%s'\n", login.c_str(), strerror(errno));
}
printfd(__FILE__, "FILES_STORE::WriteDetailStat - chmod/chown failed for user '%s'. Error: '%s'\n", login.c_str(), strerror(errno));
}
-snprintf(dn, FN_STR_LEN, "%s/%s/detail_stat/%d/%s%d",
+snprintf(dn, FN_STR_LEN, "%s/%s/detail_stat/%d/%s%d",
storeSettings.GetUsersDir().c_str(),
login.c_str(),
lt->tm_year+1900,
storeSettings.GetUsersDir().c_str(),
login.c_str(),
lt->tm_year+1900,