Compare commits

..

11 Commits

Author SHA1 Message Date
Santhosh Raju 144387cfb6 Ignore netbsd folder in other builds. 2024-03-16 15:50:07 +01:00
Santhosh Raju 3ab7f5b14f Use kvm and ifaddr defs from shared.hpp. 2024-03-16 15:50:07 +01:00
Santhosh Raju 34cc0baf76 Simplify the CI command. 2024-03-16 15:50:07 +01:00
Santhosh Raju e9a419fd80 Add support for reading thermal stats. 2024-03-16 15:50:06 +01:00
Santhosh Raju 0db0041917 Add support for reading battery stats. 2024-03-16 15:50:06 +01:00
Santhosh Raju 3e12b6351a Get the 64 bit value of physmem. 2024-03-16 15:50:06 +01:00
Santhosh Raju ddde1898b4 Add CMake build support for NetBSD. 2024-03-16 15:50:06 +01:00
Santhosh Raju ba8b847c0d Attempt to fix the CI. 2024-03-16 15:50:06 +01:00
Santhosh Raju 8734542021 Fix some of the memory stats. 2024-03-16 15:50:06 +01:00
Santhosh Raju 6d176ee11c Add build files for NetBSD. 2024-03-16 15:50:06 +01:00
Santhosh Raju dd41ef718e Add NetBSD Support. 2024-03-16 15:50:06 +01:00
4 changed files with 5 additions and 94 deletions

View File

@ -1,4 +1,5 @@
name: 🧪 Test snap can be built on x86_64
on:
workflow_dispatch:
push:
@ -31,7 +32,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
node-version: [16.x]
steps:
- uses: actions/checkout@v2

View File

@ -6,7 +6,7 @@ description: |
C++ version and continuation of bashtop and bpytop.
license: Apache-2.0
base: core22
base: core20
grade: stable
confinement: strict
compression: lzo

View File

@ -160,7 +160,6 @@ namespace Gpu {
namespace Rsmi {
#if !defined(RSMI_STATIC)
//? RSMI defines, structs & typedefs
#define RSMI_DEVICE_NAME_BUFFER_SIZE 128
#define RSMI_MAX_NUM_FREQUENCIES_V5 32
#define RSMI_MAX_NUM_FREQUENCIES_V6 33
#define RSMI_STATUS_SUCCESS 0
@ -1397,8 +1396,8 @@ namespace Gpu {
for (uint32_t i = 0; i < device_count; ++i) {
if constexpr(is_init) {
//? Device name
char name[RSMI_DEVICE_NAME_BUFFER_SIZE];
result = rsmi_dev_name_get(i, name, RSMI_DEVICE_NAME_BUFFER_SIZE);
char name[NVML_DEVICE_NAME_BUFFER_SIZE]; // ROCm SMI does not provide a constant for this as far as I can tell, this should be good enough
result = rsmi_dev_name_get(i, name, NVML_DEVICE_NAME_BUFFER_SIZE);
if (result != RSMI_STATUS_SUCCESS)
Logger::warning("ROCm SMI: Failed to get device name");
else gpu_names[Nvml::device_count + i] = string(name);

View File

@ -1,89 +0,0 @@
# Btop gruvbox_light theme
# by kk9uk
# Main background, empty for terminal default, need to be empty if you want transparent background
theme[main_bg]="#fbf1c7"
# Main text color
theme[main_fg]="#3c3836"
# Title color for boxes
theme[title]="#3c3836"
# Highlight color for keyboard shortcuts
theme[hi_fg]="#cc241d"
# Background color of selected items
theme[selected_bg]="#f2e5bc"
# Foreground color of selected items
theme[selected_fg]="#8f3f71"
# Color of inactive/disabled text
theme[inactive_fg]="#ebdbb2"
# Color of text appearing on top of graphs, i.e uptime and current network graph scaling
theme[graph_text]="#a89984"
# Misc colors for processes box including mini cpu graphs, details memory graph and details status text
theme[proc_misc]="#98971a"
# Cpu box outline color
theme[cpu_box]="#a89984"
# Memory/disks box outline color
theme[mem_box]="#a89984"
# Net up/down box outline color
theme[net_box]="#a89984"
# Processes box outline color
theme[proc_box]="#a89984"
# Box divider line and small boxes line color
theme[div_line]="#a89984"
# Temperature graph colors
theme[temp_start]="#98971a"
theme[temp_mid]=""
theme[temp_end]="#cc241d"
# CPU graph colors
theme[cpu_start]="#427b58"
theme[cpu_mid]="#d79921"
theme[cpu_end]="#cc241d"
# Mem/Disk free meter
theme[free_start]="#cc241d"
theme[free_mid]="#d79921"
theme[free_end]="#427b58"
# Mem/Disk cached meter
theme[cached_start]="#458588"
theme[cached_mid]="#076678"
theme[cached_end]="#427b58"
# Mem/Disk available meter
theme[available_start]="#cc241d"
theme[available_mid]="#d65d0e"
theme[available_end]="#b57614"
# Mem/Disk used meter
theme[used_start]="#427b58"
theme[used_mid]="#d65d0e"
theme[used_end]="#cc241d"
# Download graph colors
theme[download_start]="#98971a"
theme[download_mid]="#689d6a"
theme[download_end]="#79740e"
# Upload graph colors
theme[upload_start]="#cc241d"
theme[upload_mid]="#d65d0e"
theme[upload_end]="#b57614"
# Process box color gradient for threads, mem and cpu usage
theme[process_start]="#427b58"
theme[process_mid]="#af3a03"
theme[process_end]="#cc241d"