Skip to content

Commit

Permalink
removed old file
Browse files Browse the repository at this point in the history
  • Loading branch information
MatusKysel committed Oct 16, 2024
1 parent db9a9cf commit bb22fd5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 18 deletions.
4 changes: 2 additions & 2 deletions libraries/common/include/common/init.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ inline bool checkDiskSpace(const std::string& path, uint64_t required_space_MB)

// Get file system statistics
if (statvfs(path.c_str(), &stat) != 0) {
// If statvfs fails, return false
// If statvfs fails, return true
std::cerr << "Error getting file system stats" << std::endl;
return false;
return true;
}

// Calculate available space
Expand Down
15 changes: 0 additions & 15 deletions libraries/common/include/common/static_init.hpp

This file was deleted.

2 changes: 1 addition & 1 deletion programs/taraxad/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ using namespace taraxa;
int main(int argc, const char* argv[]) {
static_init();

if (!checkDiskSpace(cli::tools::getTaraxaDefaultConfigFile(), 100)) {
if (!checkDiskSpace(cli::tools::getTaraxaDefaultConfigFile(), 10)) {
std::cerr << "Insufficient disk space" << std::endl;
return 1;
}
Expand Down

0 comments on commit bb22fd5

Please sign in to comment.