| index 9ba209a..332c2f5 100755 | ||
| --- a/release-dist.sh | ||
| +++ b/release-dist.sh | ||
| @@ -28,7 +28,7 @@ set -euo pipefail | ||
| 28 | 28 | |
| 29 | 29 | SLUG="nvtop" |
| 30 | 30 | ID="plugin_nvtop" |
| 31 | -VERSION="1.0.2" | |
| 31 | +VERSION="1.0.3" | |
| 32 | 32 | DIST_BASE_URL="https://dist.scorpiox.net/bot-plugins" |
| 33 | 33 | |
| 34 | 34 | ROOT="$(cd "$(dirname "$0")" && pwd)" |
| index 278f0a2..d3dd512 100644 | ||
| --- a/src/plugin_nvtop.c | ||
| +++ b/src/plugin_nvtop.c | ||
| @@ -60,7 +60,7 @@ | ||
| 60 | 60 | |
| 61 | 61 | #define PLUGIN_SLUG "nvtop" |
| 62 | 62 | #define PLUGIN_ID "plugin_nvtop" |
| 63 | -#define PLUGIN_VER "1.0.2" | |
| 63 | +#define PLUGIN_VER "1.0.3" | |
| 64 | 64 | |
| 65 | 65 | #define MAX_GPUS 32 |
| 66 | 66 | #define MAX_PROCS 256 |
| index a13ec47..b4d9030 100755 | ||
| --- a/tests/run.sh | ||
| +++ b/tests/run.sh | ||
| @@ -77,7 +77,7 @@ DESC=$(printf '%s' "$META" | sed 's/.*"desc":"\([^"]*\)".*/\1/') | ||
| 77 | 77 | [ ${#DESC} -le 15 ] && pass "desc length ${#DESC} <= 15 chars" || fail "desc too long (${#DESC})" |
| 78 | 78 | NAME=$(printf '%s' "$META" | sed 's/.*"name":"\([^"]*\)".*/\1/') |
| 79 | 79 | [ "$(printf '%s' "$NAME" | wc -w | tr -d ' ')" -le 1 ] && pass "name is a single word" || fail "name has spaces" |
| 80 | -check "--version prints version" '1.0.2' "$("$BIN" --version)" | |
| 80 | +check "--version prints version" '1.0.3' "$("$BIN" --version)" | |
| 81 | 81 | check "--help is available" 'usage:' "$("$BIN" --help)" |
| 82 | 82 | check "--help documents the mock hook" 'NVTOP_MOCK_CSV' "$("$BIN" --help)" |
| 83 | 83 | META_AUTH=$(BOT_PASSWORD=secret "$BIN" --meta) |
| @@ -226,7 +226,7 @@ assert g["util_gpu"]==44.0 and g["temp_c"]==58 and g["power_w"]==112.0 and g["po | ||
| 226 | 226 | section "mode 2 action=info" |
| 227 | 227 | INFO=$(body "$(QUERY_STRING='action=info' "$BIN")") |
| 228 | 228 | check "info names the plugin" '"plugin":"plugin_nvtop"' "$INFO" |
| 229 | -check "info reports the version" '"version":"1.0.2"' "$INFO" | |
| 229 | +check "info reports the version" '"version":"1.0.3"' "$INFO" | |
| 230 | 230 | check "info lists the probes" 'nvidia-smi' "$INFO" |
| 231 | 231 | check "info lists the mock hook" 'NVTOP_MOCK_CSV' "$INFO" |
| 232 | 232 | check "info advertises zero_network" '"zero_network":true' "$INFO" |
| 233 | 233 |
| index 9ba209a..332c2f5 100755 | index 9ba209a..332c2f5 100755 | ||
| --- a/release-dist.sh | --- a/release-dist.sh | ||
| +++ b/release-dist.sh | +++ b/release-dist.sh | ||
| @@ -28,7 +28,7 @@ set -euo pipefail | @@ -28,7 +28,7 @@ set -euo pipefail | ||
| 28 | 28 | ||
| 29 | SLUG="nvtop" | 29 | SLUG="nvtop" |
| 30 | ID="plugin_nvtop" | 30 | ID="plugin_nvtop" |
| 31 | -VERSION="1.0.2" | 31 | +VERSION="1.0.3" |
| 32 | DIST_BASE_URL="https://dist.scorpiox.net/bot-plugins" | 32 | DIST_BASE_URL="https://dist.scorpiox.net/bot-plugins" |
| 33 | 33 | ||
| 34 | ROOT="$(cd "$(dirname "$0")" && pwd)" | 34 | ROOT="$(cd "$(dirname "$0")" && pwd)" |
| index 278f0a2..d3dd512 100644 | index 278f0a2..d3dd512 100644 | ||
| --- a/src/plugin_nvtop.c | --- a/src/plugin_nvtop.c | ||
| +++ b/src/plugin_nvtop.c | +++ b/src/plugin_nvtop.c | ||
| @@ -60,7 +60,7 @@ | @@ -60,7 +60,7 @@ | ||
| 60 | 60 | ||
| 61 | #define PLUGIN_SLUG "nvtop" | 61 | #define PLUGIN_SLUG "nvtop" |
| 62 | #define PLUGIN_ID "plugin_nvtop" | 62 | #define PLUGIN_ID "plugin_nvtop" |
| 63 | -#define PLUGIN_VER "1.0.2" | 63 | +#define PLUGIN_VER "1.0.3" |
| 64 | 64 | ||
| 65 | #define MAX_GPUS 32 | 65 | #define MAX_GPUS 32 |
| 66 | #define MAX_PROCS 256 | 66 | #define MAX_PROCS 256 |
| index a13ec47..b4d9030 100755 | index a13ec47..b4d9030 100755 | ||
| --- a/tests/run.sh | --- a/tests/run.sh | ||
| +++ b/tests/run.sh | +++ b/tests/run.sh | ||
| @@ -77,7 +77,7 @@ DESC=$(printf '%s' "$META" | sed 's/.*"desc":"\([^"]*\)".*/\1/') | @@ -77,7 +77,7 @@ DESC=$(printf '%s' "$META" | sed 's/.*"desc":"\([^"]*\)".*/\1/') | ||
| 77 | [ ${#DESC} -le 15 ] && pass "desc length ${#DESC} <= 15 chars" || fail "desc too long (${#DESC})" | 77 | [ ${#DESC} -le 15 ] && pass "desc length ${#DESC} <= 15 chars" || fail "desc too long (${#DESC})" |
| 78 | NAME=$(printf '%s' "$META" | sed 's/.*"name":"\([^"]*\)".*/\1/') | 78 | NAME=$(printf '%s' "$META" | sed 's/.*"name":"\([^"]*\)".*/\1/') |
| 79 | [ "$(printf '%s' "$NAME" | wc -w | tr -d ' ')" -le 1 ] && pass "name is a single word" || fail "name has spaces" | 79 | [ "$(printf '%s' "$NAME" | wc -w | tr -d ' ')" -le 1 ] && pass "name is a single word" || fail "name has spaces" |
| 80 | -check "--version prints version" '1.0.2' "$("$BIN" --version)" | 80 | +check "--version prints version" '1.0.3' "$("$BIN" --version)" |
| 81 | check "--help is available" 'usage:' "$("$BIN" --help)" | 81 | check "--help is available" 'usage:' "$("$BIN" --help)" |
| 82 | check "--help documents the mock hook" 'NVTOP_MOCK_CSV' "$("$BIN" --help)" | 82 | check "--help documents the mock hook" 'NVTOP_MOCK_CSV' "$("$BIN" --help)" |
| 83 | META_AUTH=$(BOT_PASSWORD=secret "$BIN" --meta) | 83 | META_AUTH=$(BOT_PASSWORD=secret "$BIN" --meta) |
| @@ -226,7 +226,7 @@ assert g["util_gpu"]==44.0 and g["temp_c"]==58 and g["power_w"]==112.0 and g["po | @@ -226,7 +226,7 @@ assert g["util_gpu"]==44.0 and g["temp_c"]==58 and g["power_w"]==112.0 and g["po | ||
| 226 | section "mode 2 action=info" | 226 | section "mode 2 action=info" |
| 227 | INFO=$(body "$(QUERY_STRING='action=info' "$BIN")") | 227 | INFO=$(body "$(QUERY_STRING='action=info' "$BIN")") |
| 228 | check "info names the plugin" '"plugin":"plugin_nvtop"' "$INFO" | 228 | check "info names the plugin" '"plugin":"plugin_nvtop"' "$INFO" |
| 229 | -check "info reports the version" '"version":"1.0.2"' "$INFO" | 229 | +check "info reports the version" '"version":"1.0.3"' "$INFO" |
| 230 | check "info lists the probes" 'nvidia-smi' "$INFO" | 230 | check "info lists the probes" 'nvidia-smi' "$INFO" |
| 231 | check "info lists the mock hook" 'NVTOP_MOCK_CSV' "$INFO" | 231 | check "info lists the mock hook" 'NVTOP_MOCK_CSV' "$INFO" |
| 232 | check "info advertises zero_network" '"zero_network":true' "$INFO" | 232 | check "info advertises zero_network" '"zero_network":true' "$INFO" |
| 233 | 233 |