Skip to content

Commit

Permalink
Merge
Browse files Browse the repository at this point in the history
  • Loading branch information
SirAnthony committed Nov 1, 2021
1 parent f8fe8c3 commit d515d19
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion src/diskusage_win.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,5 @@ DiskUsage GetDiskUsage(const char* path)
result.inodes_available = 0;
result.inodes_free = 0;
result.inodes_total = 0;

return result;
}
3 changes: 1 addition & 2 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ static v8::Local<v8::Object> ConvertDiskUsage(const DiskUsage& usage)
Nan::Set(obj, Nan::New<v8::String>("total").ToLocalChecked(), Nan::New<v8::Number>(static_cast<double>(usage.total)));
Nan::Set(obj, Nan::New<v8::String>("inodes_available").ToLocalChecked(), Nan::New<v8::Number>(static_cast<double>(usage.inodes_available)));
Nan::Set(obj, Nan::New<v8::String>("inodes_free").ToLocalChecked(), Nan::New<v8::Number>(static_cast<double>(usage.inodes_free)));
Nan::Set(pbj, Nan::New<v8::String>("inodes_total").ToLocalChecked(), Nan::New<v8::Number>(static_cast<double>(usage.inodes_total)));

Nan::Set(obj, Nan::New<v8::String>("inodes_total").ToLocalChecked(), Nan::New<v8::Number>(static_cast<double>(usage.inodes_total)));
return obj;
}

Expand Down

0 comments on commit d515d19

Please sign in to comment.