--- projects/pystatgrab/_statgrab.pyx 2004/03/06 22:11:22 1.9 +++ projects/pystatgrab/_statgrab.pyx 2004/04/06 14:53:01 1.11 @@ -1,5 +1,5 @@ # -# i-scream central monitoring system +# i-scream pystatgrab # http://www.i-scream.org # Copyright (C) 2000-2004 i-scream # @@ -17,7 +17,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. # -# $Id: _statgrab.pyx,v 1.9 2004/03/06 22:11:22 tdb Exp $ +# $Id: _statgrab.pyx,v 1.11 2004/04/06 14:53:01 tdb Exp $ # ctypedef long time_t @@ -437,7 +437,13 @@ def py_get_page_stats_diff(): ) def py_statgrab_init(): - return statgrab_init() + if statgrab_init() == 0: + return True + else: + return False def py_statgrab_drop_privileges(): - return statgrab_drop_privileges() + if statgrab_drop_privileges() == 0: + return True + else: + return False