public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
From: "Fabian Grünbichler" <f.gruenbichler@proxmox.com>
To: pve-devel@lists.proxmox.com, Dominik Csapak <d.csapak@proxmox.com>
Subject: [pve-devel] applied: [PATCH storage] api: status: try to prevent converting integers to floating point
Date: Thu, 15 Jan 2026 15:24:28 +0100	[thread overview]
Message-ID: <176848706706.569162.14897336249346858480.b4-ty@proxmox.com> (raw)
In-Reply-To: <20251215081435.472283-1-d.csapak@proxmox.com>


On Mon, 15 Dec 2025 09:14:16 +0100, Dominik Csapak wrote:
> Since perl can have multiple internal representations for the same
> scalar variables, it calculates and caches them on demand.
> So when doing a division with a variable, it calculates and caches the
> floating point representation of it.
> 
> When using JSON::XS (which is the default and what we use), it has to
> look at the internal representation and chooses a format, and if
> both integer and floating point representations are there it chooses,
> floating point.
> 
> [...]

Applied, thanks!

[1/1] api: status: try to prevent converting integers to floating point
      commit: 5329fa2ac1669bbb192c3ad50b8ed487acde933c

Best regards,
-- 
Fabian Grünbichler <f.gruenbichler@proxmox.com>


_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

      reply	other threads:[~2026-01-15 14:25 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-12-15  8:14 [pve-devel] " Dominik Csapak
2026-01-15 14:24 ` Fabian Grünbichler [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=176848706706.569162.14897336249346858480.b4-ty@proxmox.com \
    --to=f.gruenbichler@proxmox.com \
    --cc=d.csapak@proxmox.com \
    --cc=pve-devel@lists.proxmox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal