mirror of
https://github.com/aristocratos/btop.git
synced 2024-09-28 22:21:35 +02:00
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:
parent
7feff854fd
commit
30cc42fcd9
@ -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 {
|
||||
|
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user