Commit c71daaa
feat: Add memory_precision config option (partial #491)
Add configurable decimal precision for memory values:
- New config option: memory_precision (default: 0)
- New flag: --memory_precision 0-3
- Works with all memory_unit modes (kib, mib, gib)
Examples:
- precision=0: '10961MiB / 16384MiB' (default, backwards compatible)
- precision=2: '10703.00MiB / 16384.00MiB'
- gib + precision=2: '10.17GiB / 16.00GiB'
Note: Disk precision requires more invasive changes since disk
uses df -h output directly. Will be addressed separately.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent c674552 commit c71daaa
1 file changed
Lines changed: 35 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
183 | 183 | | |
184 | 184 | | |
185 | 185 | | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
186 | 199 | | |
187 | 200 | | |
188 | 201 | | |
| |||
2787 | 2800 | | |
2788 | 2801 | | |
2789 | 2802 | | |
| 2803 | + | |
| 2804 | + | |
| 2805 | + | |
2790 | 2806 | | |
2791 | 2807 | | |
2792 | | - | |
2793 | | - | |
| 2808 | + | |
| 2809 | + | |
| 2810 | + | |
| 2811 | + | |
| 2812 | + | |
| 2813 | + | |
| 2814 | + | |
2794 | 2815 | | |
2795 | 2816 | | |
2796 | 2817 | | |
| |||
2799 | 2820 | | |
2800 | 2821 | | |
2801 | 2822 | | |
| 2823 | + | |
| 2824 | + | |
| 2825 | + | |
| 2826 | + | |
| 2827 | + | |
| 2828 | + | |
| 2829 | + | |
| 2830 | + | |
| 2831 | + | |
2802 | 2832 | | |
2803 | 2833 | | |
2804 | | - | |
| 2834 | + | |
2805 | 2835 | | |
2806 | 2836 | | |
2807 | 2837 | | |
| |||
5052 | 5082 | | |
5053 | 5083 | | |
5054 | 5084 | | |
| 5085 | + | |
5055 | 5086 | | |
5056 | 5087 | | |
5057 | 5088 | | |
| |||
5248 | 5279 | | |
5249 | 5280 | | |
5250 | 5281 | | |
| 5282 | + | |
5251 | 5283 | | |
5252 | 5284 | | |
5253 | 5285 | | |
| |||
0 commit comments