[med-svn] [aghermann] 50/60: SF: straighter calculation of scored_percent
andrei zavada
hmmr-guest at alioth.debian.org
Mon Nov 4 23:50:00 UTC 2013
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 <johnhommer at gmail.com>
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
More information about the debian-med-commit
mailing list