This commit is contained in:
@ -51,8 +51,6 @@ void full_server::handle_get_directory_items(const httplib::Request &req,
|
|||||||
|
|
||||||
void full_server::handle_get_drive_information(const httplib::Request & /*req*/,
|
void full_server::handle_get_drive_information(const httplib::Request & /*req*/,
|
||||||
httplib::Response &res) {
|
httplib::Response &res) {
|
||||||
auto dir_size =
|
|
||||||
utils::file::directory(get_config().get_cache_directory()).size();
|
|
||||||
res.set_content(
|
res.set_content(
|
||||||
json({
|
json({
|
||||||
{"cache_space_used", cache_size_mgr::instance().size()},
|
{"cache_space_used", cache_size_mgr::instance().size()},
|
||||||
|
Reference in New Issue
Block a user