From 0e7b5d3c84ac57e520b65591d018f55d08fb6a54 Mon Sep 17 00:00:00 2001 From: Gerardo Ganis <Gerardo.Ganis@cern.ch> Date: Thu, 17 Apr 2008 08:06:47 +0000 Subject: [PATCH] Fix a problem with formatting the missing files message git-svn-id: http://root.cern.ch/svn/root/trunk@23288 27541ba8-7e3a-0410-8455-c3a389f83636 --- proof/proofplayer/src/TProofPlayer.cxx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/proof/proofplayer/src/TProofPlayer.cxx b/proof/proofplayer/src/TProofPlayer.cxx index 14a36d9b194..ead2498630a 100644 --- a/proof/proofplayer/src/TProofPlayer.cxx +++ b/proof/proofplayer/src/TProofPlayer.cxx @@ -1330,16 +1330,16 @@ Long64_t TProofPlayerRemote::Process(TDSet *dset, const char *selector_file, AddOutputObject(tmpStatus); } // Estimate how much data are missing - Long64_t ngood = dset->GetListOfElements()->GetSize(); - Long64_t nbad = listOfMissingFiles->GetSize(); + Int_t ngood = dset->GetListOfElements()->GetSize(); + Int_t nbad = listOfMissingFiles->GetSize(); Double_t xb = Double_t(nbad) / Double_t(ngood + nbad); - msg = Form("Some files were missing: about %.1\%; details in" - " the 'missingFiles' list", xb * 100.); + msg = Form(" About %.2f %c of the requested files (%d out of %d) were missing; details in" + " the 'missingFiles' list", xb * 100., '%', nbad, nbad + ngood); tmpStatus->Add(msg.Data()); msg = Form(" +++\n" - " +++ Some files were missing: about %.1\%; details in" + " +++ About %.2f %c of the requested files (%d out of %d) are missing; details in" " the 'missingFiles' list\n" - " +++", xb * 100.); + " +++", xb * 100., '%', nbad, nbad + ngood); gProofServ->SendAsynMessage(msg.Data()); } else { // Cleanup -- GitLab