From patchwork Sat Oct 24 18:47:30 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefano Babic X-Patchwork-Id: 1387088 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=googlegroups.com (client-ip=2a00:1450:4864:20::23d; helo=mail-lj1-x23d.google.com; envelope-from=swupdate+bncbcxploxj6ikrbt7n2h6akgqegcor7sq@googlegroups.com; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=googlegroups.com header.i=@googlegroups.com header.a=rsa-sha256 header.s=20161025 header.b=CGGc6eYn; dkim-atps=neutral Received: from mail-lj1-x23d.google.com (mail-lj1-x23d.google.com [IPv6:2a00:1450:4864:20::23d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4CJVTb5rsCz9sTm for ; Sun, 25 Oct 2020 05:47:47 +1100 (AEDT) Received: by mail-lj1-x23d.google.com with SMTP id f4sf2495208ljn.2 for ; Sat, 24 Oct 2020 11:47:46 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1603565264; cv=pass; d=google.com; s=arc-20160816; b=m6KAKtSTsyb8TTOcUSA7cfLTdHps9BJumHap1Qq6Ltns2PnUezOqXhVW2EiH3rbo77 HrtDe9loK/CSekRpTvDavBaeerSmdwwJHpsONHvMExISiXuSjamvUZlh0BqYdShWRLba wKhaNCn86EGvt7Sw7gf+JsSHjO9tvSm54AlLqwA0bKcn9kqQ7+dX64wIZMjWTpWLll6h KCQYBZT0XScLA1cni9FL14WmfBqlD+8kQtyJL4IOA7ea13DtkB9ubpY0kY2Is5HTF5Xr kMm1W6XqMI86Rjx9NdTspCnk/to1HhgByaXM8QOgZX9Q0uIL1Ma+g7Wokzooxo9Kpri1 euow== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:dkim-signature; bh=R9cgSDf40ncSYXftmb2bPdLwANd8vqnB7uJVi/O4l4c=; b=mdYfh9c30ukXkwTWTTZyB3VCtkEtEgRVe+vXgGTLMMKiyNuA1g7wALw9K3t8tYKPjH ONZI6U7ZGPHwVGofFe8/l2Fwsd0o9juLAhgEudh9em13sXcIEdowwOND6ju2uzj/NyV5 /kAs/df7ojGvusR7TLsv4eTpQuoYRiIjghYgRVM9HKC+kSjTd9NZBeWXYenbMQmQeXv6 j5qLmc9f5m1lqXXAfWDOeBja1oqQSmKkSXz4E3XTB/cldYPjI9SSRNCy4bfcfbi/izkM BtFS0d5yFe8zZkldTlD7XuleAtuMDC6XQCy6RjtnhCanxssbVa7gVuWyp3rpM2hbPAhW Fk3g== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=neutral (google.com: 212.18.0.9 is neither permitted nor denied by best guess record for domain of sbabic@denx.de) smtp.mailfrom=sbabic@denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=R9cgSDf40ncSYXftmb2bPdLwANd8vqnB7uJVi/O4l4c=; b=CGGc6eYntLBeUj4UYRt+35T9MD2uuupldWd+Qs9pRmZZ6lAz0hBpIkaZKtCLMaN+VY Vo5BBDgQ1137H4EPoy0WBkQ3Hd5m4Q2Nf1KYDzKXnp/mUn23Y6zs16UYxe9cxDWYsFyf OInbBkqtdbkB71aJeJgex5PFoooNLUyFGXuotnK+cPQ/l3yqH8qi1JuarMd0/s8eFTJa gRF1sf3fqMbSp58l+Ea7GNoPisfJM5CU9yBReH7W7pY1UEj+DUBJ8UF+YG83lktYCz2Q YdEQjQzSB+k0yC196TPbl4+5vfWbJCtRp+9PfrlNToSlO5fsqYi7R/lAdbTJPwgtV9j1 83mg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=R9cgSDf40ncSYXftmb2bPdLwANd8vqnB7uJVi/O4l4c=; b=slrQBtTskFdOsjQwkIQqbPbgCElD1MttUNouaQ39QBa7EO1LIg6N3/HTz+MgWkbxFD IkHxZqCG93/3SaTrmbU6pPOkSkiwK2RSsOvgh/u6f9F7yVw7F2GU9oCPUt9v0xI2PsdD AhHUhVVA+cLzMWd8msCgtMYx9o1jFj6rbrU14LxLcmMfxxC4skS9UTPuj3298e9sNYte 6GJOd+uLPAiyojpNlg9gN+XKHHPhX8rSu7qyBsvdyAW0dAgw94gM2o0RPvKx6LM21juK WXFDfcY9lWgD9geeGFwV6cYR9hRxaF1V8Yn1xYC7WF9pPMBjTo4GRpmeCseWPcQuSVzR LE1A== Sender: swupdate@googlegroups.com X-Gm-Message-State: AOAM531BnYnrYlP5FDn9ZDBAW+l44BFfWYt1KmNNrv0NOi6S0yfoW3Hw q99l7Azq9ppuct+4XbSd0Ww= X-Google-Smtp-Source: ABdhPJwviNsy8iCeaCOvINpC3TnxX9CouLRoK+lhkCgZqgtxCBs+qDbkJUwNWl8IYdiDZ7epweaXHg== X-Received: by 2002:a2e:8515:: with SMTP id j21mr3011963lji.419.1603565263899; Sat, 24 Oct 2020 11:47:43 -0700 (PDT) X-BeenThere: swupdate@googlegroups.com Received: by 2002:a19:c111:: with SMTP id r17ls2397119lff.0.gmail; Sat, 24 Oct 2020 11:47:42 -0700 (PDT) X-Received: by 2002:ac2:519a:: with SMTP id u26mr2800111lfi.73.1603565262576; Sat, 24 Oct 2020 11:47:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603565262; cv=none; d=google.com; s=arc-20160816; b=X4V8Mkn7pLWd350XAWVEbDjCbxF7jNUY7EZUc0dEz11aapbA1JoZknztDzyCec21jP NIyE4exTObgRfH5MTwozzokxlXIatei6vWkt31RuB7k+0dltR0ICr7b9NCTLj3+bczdt dMIW4sKtKBtmbl+loWokfV4w91z460/uJHH5bTluK2FbJ9BUTEXD9C1ivREk7SRuT5hG 2PYltOKRqptGO+nRlHt4ZPP2lQ3EUMCkOkLQgs7XRwV4DKPJTLoNgp4bkbeEZBZ4dc4q vV+uzGnTl4b10fmSNYoxX0EjpyBcDbmoUgk+BCmjro+hguZfly71cv9XOEtItm8gGNAT 5K5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=FEtJvmLis445Ruxvg7DcDl0mp4plv6BlTBKMSrIcxxA=; b=NKR80X4e84k45uev9g8wV9nF34ja76+rCdBhIUI9WGhkUEppwvWGlR0PfD62NzWv3R AD2v9jDd1U4RtK5i0oAlhpAPjeu633bLv7ONGqlxVxtniMGP3oIFpZIKyI3Y8ZdFmSKz KihjcEempN1x7iO+3w6BFGJo8G5+k1bJFQPpMSFRpL82tSpbTwdt8YQoY5kwVPsDQOxm Zs3zR62azxcJMBErJfGvixJUnpaDle4BHR1p7ZNB9j9rOramsHozCIG7JgGfOHZRbiE0 cj7GpDrJsiS2woeaXTD8IE7AlpARZMC2LgGEW2Z1sSeQsZC7yamlW1fm5MJ77lGpWf+L BC/Q== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=neutral (google.com: 212.18.0.9 is neither permitted nor denied by best guess record for domain of sbabic@denx.de) smtp.mailfrom=sbabic@denx.de Received: from mail-out.m-online.net (mail-out.m-online.net. [212.18.0.9]) by gmr-mx.google.com with ESMTPS id o142si124372lff.6.2020.10.24.11.47.42 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 24 Oct 2020 11:47:42 -0700 (PDT) Received-SPF: neutral (google.com: 212.18.0.9 is neither permitted nor denied by best guess record for domain of sbabic@denx.de) client-ip=212.18.0.9; Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 4CJVTT6WlQz1qrfr; Sat, 24 Oct 2020 20:47:41 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 4CJVTT6P3Xz1qrDx; Sat, 24 Oct 2020 20:47:41 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id 9dTwBg16OACG; Sat, 24 Oct 2020 20:47:41 +0200 (CEST) Received: from babic.homelinux.org (host-88-217-136-221.customer.m-online.net [88.217.136.221]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPS; Sat, 24 Oct 2020 20:47:41 +0200 (CEST) Received: from localhost (mail.babic.homelinux.org [127.0.0.1]) by babic.homelinux.org (Postfix) with ESMTP id C4830454067A; Sat, 24 Oct 2020 20:47:40 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at babic.homelinux.org Received: from babic.homelinux.org ([127.0.0.1]) by localhost (mail.babic.homelinux.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id mOpi7OqVaOKG; Sat, 24 Oct 2020 20:47:38 +0200 (CEST) Received: from paperino.fritz.box (paperino.fritz.box [192.168.178.64]) by babic.homelinux.org (Postfix) with ESMTP id 09138454086D; Sat, 24 Oct 2020 20:47:34 +0200 (CEST) From: Stefano Babic To: swupdate@googlegroups.com Cc: Stefano Babic Subject: [swupdate] [PATCH 5/5] Reset progress values after Update is completed Date: Sat, 24 Oct 2020 20:47:30 +0200 Message-Id: <20201024184730.119506-5-sbabic@denx.de> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201024184730.119506-1-sbabic@denx.de> References: <20201024184730.119506-1-sbabic@denx.de> MIME-Version: 1.0 X-Original-Sender: sbabic@denx.de X-Original-Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 212.18.0.9 is neither permitted nor denied by best guess record for domain of sbabic@denx.de) smtp.mailfrom=sbabic@denx.de Precedence: list Mailing-list: list swupdate@googlegroups.com; contact swupdate+owners@googlegroups.com List-ID: X-Spam-Checked-In-Group: swupdate@googlegroups.com X-Google-Group-Id: 605343134186 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Signed-off-by: Stefano Babic --- core/progress_thread.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/progress_thread.c b/core/progress_thread.c index 1889d72..af3a09f 100644 --- a/core/progress_thread.c +++ b/core/progress_thread.c @@ -204,6 +204,10 @@ void swupdate_progress_done(const char *info) prbar->msg.status = DONE; send_progress_msg(); prbar->msg.infolen = 0; + prbar->msg.nsteps = 0; + prbar->msg.cur_step = 0; + prbar->msg.cur_percent = 0; + prbar->msg.dwl_percent = 0; pthread_mutex_unlock(&prbar->lock); }