[med-svn] [aghermann] 82/85: check that metrics::profile computed flag is set correctly
andrei zavada
hmmr-guest at alioth.debian.org
Thu Sep 26 23:46:37 UTC 2013
This is an automated email from the git hooks/post-receive script.
hmmr-guest pushed a commit to branch master
in repository aghermann.
commit 1b0dc7e2da73086cc853386041451ea3898a0ff9
Author: Andrei Zavada <johnhommer at gmail.com>
Date: Fri Sep 27 00:21:10 2013 +0300
check that metrics::profile computed flag is set correctly
---
upstream/src/libmetrics/page-metrics-base.cc | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/upstream/src/libmetrics/page-metrics-base.cc b/upstream/src/libmetrics/page-metrics-base.cc
index 04cb605..d0479d8 100644
--- a/upstream/src/libmetrics/page-metrics-base.cc
+++ b/upstream/src/libmetrics/page-metrics-base.cc
@@ -128,8 +128,10 @@ compute( const SPPack& req_params)
unlink( old_mirror.c_str());
#pragma GCC diagnostic pop
- if ( got_it )
+ if ( got_it ) {
+ _status |= TFlags::computed;
return 0;
+ }
// printf( "CProfile::compute( %s, %s): %g sec (%zu pp @%zu + %zu sec last incomplete page); bins/size/freq_max = %zu/%g/%g",
// _using_F.filename(), _using_F.channel_by_id(_using_sig_no),
@@ -138,6 +140,10 @@ compute( const SPPack& req_params)
// _bins, binsize, freq_max);
auto retval = go_compute();
+ if ( retval == 0 )
+ _status |= TFlags::computed;
+ else
+ _status &= ~TFlags::computed;
mirror_enable( new_mirror) or true;
--
Alioth's /git/debian-med/git-commit-notice on /srv/git.debian.org/git/debian-med/aghermann.git
More information about the debian-med-commit
mailing list