Skip to content

Commit

Permalink
Fix test code for mounts
Browse files Browse the repository at this point in the history
  • Loading branch information
thorhs committed Dec 17, 2020
1 parent 2d2ca21 commit e4541cd
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions mounts.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,7 @@ std::vector<filesystem> stat_filesystems(std::vector<mountpoint> mounts) {

#ifdef TESTING
int main() {
auto mounts = list_mounts();

for(auto it = mounts.begin(); it != mounts.end(); it++) {
std::cout << *it << std::endl;
}

auto fs = stat_filesystems(mounts);
auto fs = stat_filesystems(list_mounts());

for(auto it = fs.begin(); it != fs.end(); it++) {
std::cout << (*it).mountpoint << " " << (*it).size_bytes/1024 << " " << (*it).free_bytes/1024 << std::endl;
Expand Down

0 comments on commit e4541cd

Please sign in to comment.