mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2026-11-22 11:47:17 +00:00
fixed windows build
This commit is contained in:
1 parent
e20cf4c960
commit
e7a1802bee
3 files changed
+9
-9
No files matched your search
@@ -72,7 +72,7 @@ namespace data
|
||||
|
||||
// save to file
|
||||
std::string ident = identHash.ToBase64 ();
|
||||
std::string path = g_ProfilesStorage.Path(ident);
|
||||
std::string path = g_ProfilesStorage.Path(ident).string ();
|
||||
|
||||
try
|
||||
{
|
||||
@@ -89,7 +89,7 @@ namespace data
|
||||
{
|
||||
m_IsUpdated = false;
|
||||
std::string ident = identHash.ToBase64 ();
|
||||
std::string path = g_ProfilesStorage.Path(ident);
|
||||
std::string path = g_ProfilesStorage.Path(ident).string ();
|
||||
boost::property_tree::ptree pt;
|
||||
|
||||
if (!i2p::fs::Exists(path))
|
||||
@@ -358,7 +358,7 @@ namespace data
|
||||
std::time_t now = std::time(nullptr);
|
||||
for (const auto& path: files)
|
||||
{
|
||||
if (stat(path.c_str(), &st) != 0)
|
||||
if (stat(path.string ().c_str(), &st) != 0)
|
||||
{
|
||||
LogPrint(eLogWarning, "Profiling: Can't stat(): ", path);
|
||||
continue;
|
||||
@@ -366,7 +366,7 @@ namespace data
|
||||
if (now - st.st_mtime >= PEER_PROFILE_EXPIRATION_TIMEOUT)
|
||||
{
|
||||
LogPrint(eLogDebug, "Profiling: Removing expired peer profile: ", path);
|
||||
i2p::fs::Remove(path);
|
||||
i2p::fs::Remove(path.string ());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user