winload-rust-bin 0.1.9-rc.7 → 0.1.10-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +7 -7
- package/readme.md +14 -12
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "winload-rust-bin",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.10-beta.1",
|
|
4
4
|
"description": "Network Load Monitor — nload-like TUI tool for Windows/Linux/macOS (prebuilt Rust binary)",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -33,11 +33,11 @@
|
|
|
33
33
|
"access": "public"
|
|
34
34
|
},
|
|
35
35
|
"optionalDependencies": {
|
|
36
|
-
"@vincentzyuapps/winload-win32-x64": "0.1.
|
|
37
|
-
"@vincentzyuapps/winload-win32-arm64": "0.1.
|
|
38
|
-
"@vincentzyuapps/winload-linux-x64": "0.1.
|
|
39
|
-
"@vincentzyuapps/winload-linux-arm64": "0.1.
|
|
40
|
-
"@vincentzyuapps/winload-darwin-x64": "0.1.
|
|
41
|
-
"@vincentzyuapps/winload-darwin-arm64": "0.1.
|
|
36
|
+
"@vincentzyuapps/winload-win32-x64": "0.1.10-beta.1",
|
|
37
|
+
"@vincentzyuapps/winload-win32-arm64": "0.1.10-beta.1",
|
|
38
|
+
"@vincentzyuapps/winload-linux-x64": "0.1.10-beta.1",
|
|
39
|
+
"@vincentzyuapps/winload-linux-arm64": "0.1.10-beta.1",
|
|
40
|
+
"@vincentzyuapps/winload-darwin-x64": "0.1.10-beta.1",
|
|
41
|
+
"@vincentzyuapps/winload-darwin-arm64": "0.1.10-beta.1"
|
|
42
42
|
}
|
|
43
43
|
}
|
package/readme.md
CHANGED
|
@@ -202,12 +202,13 @@ which winload
|
|
|
202
202
|
winload # Monitor all active network interfaces
|
|
203
203
|
winload -t 200 # Set refresh interval to 200ms
|
|
204
204
|
winload -d "Wi-Fi" # Start with a specific device
|
|
205
|
-
winload --title # Show "winload <version>" as the header title
|
|
206
205
|
winload --title "My Monitor" # Use a custom header title
|
|
207
|
-
winload --title "" # Keep the default device header
|
|
208
206
|
winload -e # Enable emoji decorations 🎉
|
|
207
|
+
winload --max-mode smart --max-half-life 10 # Smooth adaptive Y-axis (default)
|
|
208
|
+
winload --max-mode legacy # nload-style visible-history scaling
|
|
209
|
+
winload --max-mode fixed --max-y-value 10M # Fixed Y-axis max
|
|
209
210
|
winload --npcap # Capture 127.0.0.1 loopback traffic (Windows, requires Npcap)
|
|
210
|
-
winload --netlink #
|
|
211
|
+
winload --netlink # Manually enable RTNETLINK (Linux/Android Rust edition, off by default)
|
|
211
212
|
```
|
|
212
213
|
|
|
213
214
|
### Options
|
|
@@ -224,8 +225,9 @@ winload --netlink # Use RTNETLINK on Linux/Android (Termux proot distro, etc.
|
|
|
224
225
|
| `-b`, `--bar-style <STYLE>` | Bar style: `fill`, `color`, or `plain` | `fill` |
|
|
225
226
|
| `--in-color <HEX>` | Incoming graph color, hex RGB (e.g. `0x00d7ff`) | cyan |
|
|
226
227
|
| `--out-color <HEX>` | Outgoing graph color, hex RGB (e.g. `0xffaf00`) | gold |
|
|
227
|
-
|
|
|
228
|
-
| `--
|
|
228
|
+
| `--max-mode <MODE>` | Y-axis scaling mode: `smart`, `legacy`, or `fixed` | `smart` |
|
|
229
|
+
| `--max-half-life <SECS>` | Half-life for smart Y-axis decay | `10` |
|
|
230
|
+
| `--max-y-value <VALUE>` | Fixed Y-axis max for `--max-mode fixed` (e.g. `10M`, `1G`, `500K`) | — |
|
|
229
231
|
| `-n`, `--no-graph` | Hide graph, show stats only | off |
|
|
230
232
|
| `--hide-separator` | Hide the separator line (row of equals signs) | off |
|
|
231
233
|
| `--no-color` | Disable all TUI colors (monochrome mode) | off |
|
|
@@ -235,15 +237,15 @@ winload --netlink # Use RTNETLINK on Linux/Android (Termux proot distro, etc.
|
|
|
235
237
|
| `-h`, `--help` | Print help (`--help --emoji` for emoji version!) | — |
|
|
236
238
|
| `-V`, `--version` | Print version | — |
|
|
237
239
|
|
|
238
|
-
> **Y-axis scaling modes**
|
|
240
|
+
> **Y-axis scaling modes**
|
|
239
241
|
>
|
|
240
242
|
> | Mode | Flag | Behavior |
|
|
241
243
|
> |------|------|----------|
|
|
242
|
-
> | **
|
|
243
|
-
> | **
|
|
244
|
-
> | **
|
|
244
|
+
> | **smart** | `--max-mode smart --max-half-life 10` | Default. Jumps up on traffic spikes, then smoothly decays back down. |
|
|
245
|
+
> | **legacy** | `--max-mode legacy` | nload-style scaling based on the visible graph history peak. |
|
|
246
|
+
> | **fixed** | `--max-mode fixed --max-y-value 10M` | Locks the Y-axis to the specified value. |
|
|
245
247
|
>
|
|
246
|
-
>
|
|
248
|
+
> `--max-y-value` is only valid with `--max-mode fixed`; `--max-half-life` is only valid with `--max-mode smart`.
|
|
247
249
|
|
|
248
250
|
### Keyboard Shortcuts
|
|
249
251
|
|
|
@@ -273,13 +275,13 @@ This requires [Npcap](https://npcap.com/#download) installed with "Support loopb
|
|
|
273
275
|
|
|
274
276
|
On Linux and macOS, loopback traffic works out of the box — no extra flags needed.
|
|
275
277
|
|
|
276
|
-
On **Linux/Android**, if `/proc/net/dev` is not accessible (e.g. inside a Termux proot distro or other restricted environments), use `--netlink` to collect network stats via RTNETLINK directly:
|
|
278
|
+
On **Linux/Android**, if `/proc/net/dev` is not accessible (e.g. inside a Termux proot distro or other restricted environments), the Rust edition can use `--netlink` to collect network stats via RTNETLINK directly:
|
|
277
279
|
|
|
278
280
|
```bash
|
|
279
281
|
winload --netlink
|
|
280
282
|
```
|
|
281
283
|
|
|
282
|
-
> Note: `--netlink` is **Linux/Android
|
|
284
|
+
> Note: `--netlink` is an **opt-in backend**, similar to `--npcap`; it is never enabled unless you pass the flag. Normal Linux/Android runs still use sysinfo by default. This flag is **Linux/Android Rust edition only**; the Python edition does not support `--netlink` and continues to use psutil. macOS does not support netlink.
|
|
283
285
|
>
|
|
284
286
|
> 📖 For a deep dive into Linux/Android network statistics collection, see [docs/linux_android_netlink.md](docs/linux_android_netlink.md)
|
|
285
287
|
|