Skip to content

Commit 6b5977b

Browse files
bartek szabatclaude
andcommitted
Add rm alias for remove command and update README to milli-cents
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 622f493 commit 6b5977b

2 files changed

Lines changed: 10 additions & 9 deletions

File tree

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Dynamic resource limit management for Docker containers. Set, monitor, and enfor
1515
| **Network** | Cumulative bytes | Network disconnect |
1616
| **Disk I/O bytes** | Cumulative bytes | cgroup `io.max` throttle |
1717
| **Disk I/O ops** | Cumulative operations | cgroup `io.max` throttle |
18-
| **Spending** | USD cents | HTTP proxy budget block |
18+
| **Spending** | USD milli-cents | HTTP proxy budget block |
1919
| **RAM usage B·s** | Byte-seconds (actual RAM × time) | Container kill |
2020
| **Disk usage B·s** | Byte-seconds (actual disk × time) | Container kill |
2121
| **RAM request B·s** | Byte-seconds (ddl RAM limit × time) | Container kill |
@@ -331,12 +331,12 @@ ANTHROPIC_API_KEY=sk-ant-... bash examples/llm-budget-demo.sh
331331

332332
Example output:
333333
```
334-
Request #1: HTTP 200 — model=claude-haiku-4-5-20251001 input=16 output=10
335-
Spending: 1 / 5 cents
336-
Request #2: HTTP 200 — model=claude-haiku-4-5-20251001 input=16 output=10
337-
Spending: 2 / 5 cents
334+
Request #1: "What is the tallest mountain on Earth? Answer in one sentence."
335+
=> Mount Everest is the tallest mountain on Earth.
336+
[model=claude-haiku-4-5-20251001 tokens: 16 in / 10 out]
337+
Spending: $0.0001 / $0.0005 (13 / 50 milli-cents)
338338
...
339-
Request #6: HTTP 429 — Budget exceeded!
339+
Request #4: HTTP 429 — Budget exceeded!
340340
{"error":"spending budget exceeded"}
341341
```
342342

@@ -352,7 +352,7 @@ Requests to non-tracked hosts (anything other than `api.openai.com` and `api.ant
352352
| Bytes (RAM, disk, network, I/O) | `1024`, `512k`, `256m`, `1g`, `1.5t` |
353353
| Byte-seconds (usage/request B·s) | `100g`, `1.5t` (same byte suffixes, displayed as e.g. `1.5G·s`) |
354354
| I/O operations | Plain integer |
355-
| Spending | `10.00` (USD, stored as cents) |
355+
| Spending | `10.00` (USD, stored as milli-cents) |
356356

357357
## Requirements
358358

cmd/ddl/main.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -367,8 +367,9 @@ and number of currently enforced limits.`,
367367

368368
func removeCmd() *cobra.Command {
369369
return &cobra.Command{
370-
Use: "remove <container>",
371-
Short: "Stop managing a container",
370+
Use: "remove <container>",
371+
Aliases: []string{"rm"},
372+
Short: "Stop managing a container",
372373
Long: `Remove a container from ddld management.
373374
374375
Stops tracking limits and usage for the container. The container

0 commit comments

Comments
 (0)