diff options
author | Narayan Desai <desai@mcs.anl.gov> | 2008-03-24 04:32:52 +0000 |
---|---|---|
committer | Narayan Desai <desai@mcs.anl.gov> | 2008-03-24 04:32:52 +0000 |
commit | 40ff935ebd896b90550b7f95bdf9611d88443987 (patch) | |
tree | 75ec22a02aa3635eb058b18ad407f3cfc7ac0e98 | |
parent | 0e90e442abe9657d0449daf6455c2f6f930a175b (diff) | |
download | bcfg2-40ff935ebd896b90550b7f95bdf9611d88443987.tar.gz bcfg2-40ff935ebd896b90550b7f95bdf9611d88443987.tar.bz2 bcfg2-40ff935ebd896b90550b7f95bdf9611d88443987.zip |
Speed up bcfg2-info startup
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4448 ce84e21b-d406-0410-9b95-82705330c041
-rwxr-xr-x | src/sbin/bcfg2-info | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/sbin/bcfg2-info b/src/sbin/bcfg2-info index 9016a7fed..ef5db6f6a 100755 --- a/src/sbin/bcfg2-info +++ b/src/sbin/bcfg2-info @@ -32,11 +32,10 @@ class infoCore(cmd.Cmd, Bcfg2.Server.Core.Core): raise SystemExit(1) self.prompt = '> ' self.cont = True - for i in range(25): - print "Filesystem check %d of %d" % (i + 1, 25) - self.fam.Service() - time.sleep(0.5) - + i = 0 + while self.fam.Service() or i < 5: + i += 1 + def do_loop(self): self.cont = True while self.cont: |