fix
Some checks failed
BlockStorage/repertory/pipeline/head There was a failure building this commit
Some checks failed
BlockStorage/repertory/pipeline/head There was a failure building this commit
This commit is contained in:
parent
eba93484c1
commit
36e952606b
@ -21,6 +21,7 @@
|
||||
*/
|
||||
#include "file_manager/file_manager.hpp"
|
||||
|
||||
#include "providers/i_provider.hpp"
|
||||
#include "utils/path.hpp"
|
||||
|
||||
namespace repertory {
|
||||
@ -82,6 +83,10 @@ auto file_manager::open_file_base::can_close() const -> bool {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (provider_.is_direct_only()) {
|
||||
return true;
|
||||
}
|
||||
|
||||
const std::chrono::system_clock::time_point last_access = last_access_;
|
||||
const auto duration = std::chrono::duration_cast<std::chrono::seconds>(
|
||||
std::chrono::system_clock::now() - last_access);
|
||||
|
Loading…
x
Reference in New Issue
Block a user