From b57992a382b20f99d33d845be550f8d7290f87d6 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Fri, 22 Aug 1997 19:17:54 +0000 Subject: Removed assert condition when not initialized or there are 0 periods. --- c/src/lib/libmisc/rtmonuse/rtmonuse.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'c/src/lib/libmisc') diff --git a/c/src/lib/libmisc/rtmonuse/rtmonuse.c b/c/src/lib/libmisc/rtmonuse/rtmonuse.c index 272290176e..843d29468e 100644 --- a/c/src/lib/libmisc/rtmonuse/rtmonuse.c +++ b/c/src/lib/libmisc/rtmonuse/rtmonuse.c @@ -128,6 +128,11 @@ void Period_usage_Dump( void ) unsigned32 u32_name; char name[5]; + if ( !Period_usage_Information ) { + printf( "Period statistics library is not initialized\n" ); + return; + } + printf( "Period information by period\n" ); printf( " ID OWNER PERIODS MISSED CPU TIME WALL TIME\n" ); -- cgit v1.2.3