From: "Fabian Grünbichler" <f.gruenbichler@proxmox.com>
To: Proxmox Backup Server development discussion
<pbs-devel@lists.proxmox.com>
Subject: [pbs-devel] applied: [PATCH proxmox-backup 2/2] examples/upload-speed: adapt to change
Date: Mon, 20 Jul 2020 10:22:56 +0200 [thread overview]
Message-ID: <1595233369.irazttdqko.astroid@nora.none> (raw)
In-Reply-To: <20200717133917.4621-2-d.csapak@proxmox.com>
On July 17, 2020 3:39 pm, Dominik Csapak wrote:
> commit 323b2f3dd6364119f2ffcd7397161e9f56cdb3fc
> changed the signature of upload_speedtest
> adapt the example
>
> Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
> ---
> examples/upload-speed.rs | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/examples/upload-speed.rs b/examples/upload-speed.rs
> index b438c49..8594d6e 100644
> --- a/examples/upload-speed.rs
> +++ b/examples/upload-speed.rs
> @@ -2,7 +2,7 @@ use anyhow::{Error};
>
> use proxmox_backup::client::*;
>
> -async fn upload_speed() -> Result<usize, Error> {
> +async fn upload_speed() -> Result<f64, Error> {
>
> let host = "localhost";
> let datastore = "store2";
> @@ -20,7 +20,7 @@ async fn upload_speed() -> Result<usize, Error> {
> let client = BackupWriter::start(client, None, datastore, "host", "speedtest", backup_time, false).await?;
>
> println!("start upload speed test");
> - let res = client.upload_speedtest().await?;
> + let res = client.upload_speedtest(true).await?;
>
> Ok(res)
> }
> --
> 2.20.1
>
>
>
> _______________________________________________
> pbs-devel mailing list
> pbs-devel@lists.proxmox.com
> https://lists.proxmox.com/cgi-bin/mailman/listinfo/pbs-devel
>
>
>
next prev parent reply other threads:[~2020-07-20 8:23 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-07-17 13:39 [pbs-devel] [PATCH proxmox-backup 1/2] api2/status: fix estimation bug Dominik Csapak
2020-07-17 13:39 ` [pbs-devel] [PATCH proxmox-backup 2/2] examples/upload-speed: adapt to change Dominik Csapak
2020-07-20 8:22 ` Fabian Grünbichler [this message]
2020-07-20 9:36 ` [pbs-devel] [PATCH proxmox-backup 1/2] api2/status: fix estimation bug Thomas Lamprecht
2020-07-20 14:37 ` Dominik Csapak
2020-07-20 14:48 ` Thomas Lamprecht
2020-07-21 11:10 ` [pbs-devel] applied: " Thomas Lamprecht
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=1595233369.irazttdqko.astroid@nora.none \
--to=f.gruenbichler@proxmox.com \
--cc=pbs-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.