Move get_zfs_stat_file() and zfs_collect_pool_total_stats() functions declarations to btop_collect.cpp so they aren't included when compiling for macos and freebsd

This commit is contained in:
simplepad 2022-07-05 00:20:33 +03:00
parent 7feff854fd
commit 30cc42fcd9
No known key found for this signature in database
GPG Key ID: 00DB76DD9FB623EC
2 changed files with 6 additions and 5 deletions

View File

@ -161,11 +161,6 @@ namespace Mem {
//* Draw contents of mem box using <mem> as source
string draw(const mem_info& mem, const bool force_redraw=false, const bool data_same=false);
//?* Find the filepath to the specified ZFS object's stat file
string get_zfs_stat_file(const string& device_name, size_t dataset_name_start, bool zfs_pools_only);
//?* Collect total ZFS pool io stats
bool zfs_collect_pool_total_stats(struct disk_info &disk);
}
namespace Net {

View File

@ -741,6 +741,12 @@ namespace Mem {
vector<string> last_found;
const std::regex zfs_size_regex("^size\\s+\\d\\s+(\\d+)");
//?* Find the filepath to the specified ZFS object's stat file
string get_zfs_stat_file(const string& device_name, size_t dataset_name_start, bool zfs_pools_only);
//?* Collect total ZFS pool io stats
bool zfs_collect_pool_total_stats(struct disk_info &disk);
mem_info current_mem {};
uint64_t get_totalMem() {