This is an automated email from the git hooks/post-receive script.

hmmr-guest pushed a commit to branch WIP
in repository aghermann.

commit d27d7a4e88f96bd392a8561d4abcecaa2dbdd9a3
Author: Andrei Zavada <[email protected]>
Date:   Wed Oct 23 21:44:02 2013 +0300

    SF: straighter calculation of scored_percent
---
 upstream/src/aghermann/ui/sf/sf.cc |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/upstream/src/aghermann/ui/sf/sf.cc 
b/upstream/src/aghermann/ui/sf/sf.cc
index 5698a33..51ea877 100644
--- a/upstream/src/aghermann/ui/sf/sf.cc
+++ b/upstream/src/aghermann/ui/sf/sf.cc
@@ -506,9 +506,7 @@ calculate_scored_percent()
                         SPage::score_code(SPage::TScore::wake)) / 
hypnogram.size() * 100;
 
         scored_percent =
-                100. - count(
-                        hypnogram.begin(), hypnogram.end(),
-                        SPage::score_code(SPage::TScore::none)) / 
hypnogram.size() * 100;
+                scored_percent_nrem + scored_percent_rem + scored_percent_wake;
 }
 
 

-- 
Alioth's /git/debian-med/git-commit-notice on 
/srv/git.debian.org/git/debian-med/aghermann.git

_______________________________________________
debian-med-commit mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/debian-med-commit

Reply via email to