From 487e288635f65b814c4f2dc2cb65d807dcafe72a Mon Sep 17 00:00:00 2001 From: Chee Yee Date: Tue, 6 Feb 2024 23:40:17 -0800 Subject: [PATCH] fix rclone filesize display --- CMakeLists.txt | 2 +- source/clients/rclone.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index e868381..4389f5f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -71,7 +71,7 @@ add_executable(ezremote_client add_self(ezremote_client) -add_pkg(ezremote_client ${CMAKE_SOURCE_DIR}/data "RMTC00001" "ezRemote Client" "01.14" 32 0) +add_pkg(ezremote_client ${CMAKE_SOURCE_DIR}/data "RMTC00001" "ezRemote Client" "01.15" 32 0) target_link_libraries(ezremote_client c diff --git a/source/clients/rclone.cpp b/source/clients/rclone.cpp index d95ade3..2f45a6f 100644 --- a/source/clients/rclone.cpp +++ b/source/clients/rclone.cpp @@ -161,7 +161,7 @@ std::vector RCloneClient::ListDir(const std::string &path) lxb_dom_node_t *size_node = NextChildElement(td_element); value = lxb_dom_node_text_content(size_node->first_child, &value_len); tmp_string = std::string((const char *)value, value_len); - entry.file_size = atoi(tmp_string.c_str()); + entry.file_size = atol(tmp_string.c_str()); DirEntry::SetDisplaySize(&entry); }