public inbox for pbs-devel@lists.proxmox.com
 help / color / mirror / Atom feed
* Re: [pbs-devel] [RFC proxmox-backup v3 0/2] more flexible HumanByte type
@ 2021-11-19 12:48 Dietmar Maurer
  0 siblings, 0 replies; 3+ messages in thread
From: Dietmar Maurer @ 2021-11-19 12:48 UTC (permalink / raw)
  To: pbs-devel

Another solution would be to simply use MiB/s as base unit in traffic-control.cfg, and store it as a simple float number.

This is less flexible, but much simpler to implement...

Any thought on that?




^ permalink raw reply	[flat|nested] 3+ messages in thread
* [pbs-devel] [RFC proxmox-backup v3 0/2] more flexible HumanByte type
@ 2021-11-18  7:29 Dietmar Maurer
  2021-11-18  9:28 ` Fabian Ebner
  0 siblings, 1 reply; 3+ messages in thread
From: Dietmar Maurer @ 2021-11-18  7:29 UTC (permalink / raw)
  To: pbs-devel

Changes since v2:

 - reverted changes from v2

 - restrict number of possibleunits (always store KB instead of K)
 
 - store size without scaling to unit (avoid rounding errors in
   deserialze/serialze)

 - allow to specify precision in Display

 - new with_unit() constructor

 - improved dev docs

Changes since v1:

- do not expose auto_unit functions
- store size as u64 (suggested by thomas)
- do not store unit (suggested by thomas)


*** BLURB HERE ***

Dietmar Maurer (2):
  pbs-api-types: more flexible HumanByte type
  use HumanByte for traffic-control config

 pbs-api-types/src/human_byte.rs      | 353 +++++++++++++++++++++++++++
 pbs-api-types/src/lib.rs             |   3 +
 pbs-api-types/src/traffic_control.rs |  18 +-
 pbs-client/src/backup_writer.rs      |  19 +-
 pbs-datastore/src/datastore.rs       |  13 +-
 pbs-tools/Cargo.toml                 |   1 +
 pbs-tools/src/format.rs              |  55 +----
 src/bin/proxmox-tape.rs              |   7 +-
 src/cached_traffic_control.rs        |  18 +-
 src/server/email_notifications.rs    |   5 +-
 10 files changed, 403 insertions(+), 89 deletions(-)
 create mode 100644 pbs-api-types/src/human_byte.rs

-- 
2.30.2





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-11-19 12:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-19 12:48 [pbs-devel] [RFC proxmox-backup v3 0/2] more flexible HumanByte type Dietmar Maurer
  -- strict thread matches above, loose matches on Subject: below --
2021-11-18  7:29 Dietmar Maurer
2021-11-18  9:28 ` Fabian Ebner

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