[Pkg-privacy-commits] [libgsecuredelete] 29/168: Fixed progression for VERY_*FAST modes.
Ulrike Uhlig
u-guest at moszumanska.debian.org
Thu Jul 7 20:06:34 UTC 2016
This is an automated email from the git hooks/post-receive script.
u-guest pushed a commit to branch master
in repository libgsecuredelete.
commit ca523a1d587e69c090f63d306f281971926d0a1c
Author: Colomban Wendling <ban at herbesfolles.org>
Date: Mon Oct 5 18:39:59 2009 +0200
Fixed progression for VERY_*FAST modes.
Properly set the pass number for VERY_FAST and VERY_VERY_FAST modes.
---
gsecuredelete/securedelete-operation.vala | 14 +++++++++-----
1 file changed, 9 insertions(+), 5 deletions(-)
diff --git a/gsecuredelete/securedelete-operation.vala b/gsecuredelete/securedelete-operation.vala
index 8a839f8..1f7728c 100644
--- a/gsecuredelete/securedelete-operation.vala
+++ b/gsecuredelete/securedelete-operation.vala
@@ -81,11 +81,15 @@ namespace SecureDelete
protected override uint get_max_progress ()
{
- /* FIXME: 38 is the standard S* pass number, but may change with options
- * like -l. If we support it one day, we need to fix this value (by
- * getting the one S* reports) in order to get a meaningful progress
- * information */
- return 38;
+ /* FIXME: Get the pass number reported by the program? */
+ switch (this.mode) {
+ case Mode.VERY_FAST:
+ return 2;
+ case Mode.VERY_VERY_FAST:
+ return 1;
+ default:
+ return 38;
+ }
}
/* gets the progress status of the child process */
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/libgsecuredelete.git
More information about the Pkg-privacy-commits
mailing list