[med-svn] [SCM] aghermann branch, master, updated. 99b1d5a023eee9df74b0e0d6f894516fc79435ad

Andrei Zavada johnhommer at gmail.com
Sun Jul 7 23:04:00 UTC 2013


The following commit has been merged in the master branch:
commit ef3a694a65a5d6ecf4e591ae29a025f8d353cf26
Author: Andrei Zavada <johnhommer at gmail.com>
Date:   Fri Jun 21 20:09:03 2013 +0300

    more detailed cmdline arg diagnostics in agh-profile-gen

diff --git a/src/tools/agh-profile-gen.cc b/src/tools/agh-profile-gen.cc
index 3c1efd3..be778df 100644
--- a/src/tools/agh-profile-gen.cc
+++ b/src/tools/agh-profile-gen.cc
@@ -184,8 +184,10 @@ main( int argc, char **argv)
 		if ( A.types.empty() )
 			throw invalid_argument ("Which profiles do you want?");
 
-		if ( !isfinite(A.pagesize) || !isfinite(A.step) )
-			throw invalid_argument ("Missing or invalid pagesize or step");
+		if ( !isfinite(A.pagesize) )
+			throw invalid_argument ("Missing or invalid pagesize");
+		if ( !isfinite(A.step) )
+			throw invalid_argument ("Missing or invalid step");
 
 		bool	do_psd = A.types.find( metrics::TType::psd) != A.types.end(),
 			do_mc  = A.types.find( metrics::TType:: mc) != A.types.end(),

-- 
Sleep experiment manager



More information about the debian-med-commit mailing list