all lists on lists.proxmox.com
 help / color / mirror / Atom feed
From: Thomas Lamprecht <t.lamprecht@proxmox.com>
To: pdm-devel@lists.proxmox.com, Dominik Csapak <d.csapak@proxmox.com>
Subject: applied: [PATCH datacenter-manager] ui: pbs: datastore: don't underflow for estimation calculation
Date: Tue,  1 Dec 2026 15:57:15 +0100	[thread overview]
Message-ID: <179613703375.2899119.9591935811484791363.b4-ty@b4> (raw)
In-Reply-To: <20261201130846.2469057-1-d.csapak@proxmox.com>

On Tue, 01 Dec 2026 14:08:41 +0100, Dominik Csapak wrote:
> PBS calculates the 'estimated full' timestamp with a linear regression.
> This can be in the past, and depending on the actual values, it can
> be a very large negative number. In that case it could happen that the
> subtraction here underflowed, resulting in a panic in debug mode and
> very wrong values in release mode.
> 
> Using saturating_sub here prevents both.
> 
> [...]

Applied, thanks!

[1/1] ui: pbs: datastore: don't underflow for estimation calculation
      commit: e996407d46d7d024a5af466becfc127f7a6a9854




      reply	other threads:[~2026-12-01 14:57 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-01 13:08 [PATCH datacenter-manager] ui: pbs: datastore: don't underflow for estimation calculation Dominik Csapak
2026-12-01 14:57 ` Thomas Lamprecht [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=179613703375.2899119.9591935811484791363.b4-ty@b4 \
    --to=t.lamprecht@proxmox.com \
    --cc=d.csapak@proxmox.com \
    --cc=pdm-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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal