[PR #10158] [CLOSED] humanize_speed: Only give one decimal number #13568

Closed
opened 2025-12-29 23:19:37 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/10158
Author: @prauscher
Created: 8/26/2022
Status: Closed

Base: developHead: patch-1


📝 Commits (1)

  • 2fcb4af humanize_speed: Only give one decimal number

📊 Changes

1 file changed (+2 additions, -2 deletions)

View changed files

📝 netbox/utilities/templatetags/helpers.py (+2 -2)

📄 Description

Fixes: #10157

When rendering a speed of "2048 Kbps" humanize_speed currently would give "2.048 Mbps", where germans could confuse the decimal dot with a thousand separator, interpreting the speed as 2048 Mbps. Only giving one decimal place avoids this confusion and should not remove relevant details.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netbox-community/netbox/pull/10158 **Author:** [@prauscher](https://github.com/prauscher) **Created:** 8/26/2022 **Status:** ❌ Closed **Base:** `develop` ← **Head:** `patch-1` --- ### 📝 Commits (1) - [`2fcb4af`](https://github.com/netbox-community/netbox/commit/2fcb4afec373bf490cc91e4445bd660f15e939c6) humanize_speed: Only give one decimal number ### 📊 Changes **1 file changed** (+2 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `netbox/utilities/templatetags/helpers.py` (+2 -2) </details> ### 📄 Description ### Fixes: #10157 When rendering a speed of "2048 Kbps" `humanize_speed` currently would give "2.048 Mbps", where germans could confuse the decimal dot with a thousand separator, interpreting the speed as 2048 Mbps. Only giving one decimal place avoids this confusion and should not remove relevant details. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-29 23:19:37 +01:00
adam closed this issue 2025-12-29 23:19:38 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#13568