mirror of
https://github.com/Telmate/proxmox-api-go.git
synced 2026-04-25 23:45:55 +03:00
[PR #293] [MERGED] fix: Trailing 0 and . not trimmed #378
Labels
No labels
good first issue
issue/confirmed
issue/critical
proposal/accepted
pull-request
type/bug
type/enhancement
type/feature
type/question
type/refactoring
type/testing
type/testing
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/proxmox-api-go#378
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Telmate/proxmox-api-go/pull/293
Author: @Tinyblargon
Created: 1/5/2024
Status: ✅ Merged
Merged: 1/9/2024
Merged by: @mleone87
Base:
master← Head:BugFix-Trim-Trailing-0📝 Commits (1)
1b7b2d6fix: Trailing0and.not trimmed📊 Changes
4 files changed (+74 additions, -27 deletions)
View changed files
📝
proxmox/config_qemu_disk.go(+4 -4)📝
proxmox/config_qemu_test.go(+23 -23)📝
proxmox/util.go(+9 -0)📝
proxmox/util_test.go(+38 -0)📄 Description
The proxmox ui removes trailing
0and.from floating point numbers, while we do not.This results in settings in the config being visually different when created by the this library or the proxmox gui.
Example:
mbps_rd=10.00mbps_rd=10This changes the formatting so the gui and library produce the same values.
Work done:
floatToTrimmedString()floatToTrimmedString()🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.