[Nagiosplug-checkins] CVS: nagiosplug/plugins check_game.c,1.1.1.1,1.2

Ethan Galstad egalstad at users.sourceforge.net
Mon Aug 12 20:19:01 CEST 2002


Update of /cvsroot/nagiosplug/nagiosplug/plugins
In directory usw-pr-cvs1:/tmp/cvs-serv3524/plugins

Modified Files:
	check_game.c 
Log Message:
Mod to display current/max number of players in a game (Frank Kannemann)

Index: check_game.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_game.c,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -r1.1.1.1 -r1.2
*** check_game.c	28 Feb 2002 06:42:57 -0000	1.1.1.1
--- check_game.c	13 Aug 2002 03:18:16 -0000	1.2
***************
*** 82,85 ****
--- 82,87 ----
  char port[MAX_INPUT_BUFFER];
  
+ int qstat_game_players_max = 4;
+ int qstat_game_players = 5;
  int qstat_game_field = 2;
  int qstat_map_field = 3;
***************
*** 200,205 ****
  	}
  	else {
! 		printf ("OK: %s (%s), Ping: %s ms\n", ret[qstat_game_field],
! 						ret[qstat_map_field], ret[qstat_ping_field]);
  	}
  
--- 202,211 ----
  	}
  	else {
! 		printf ("OK: %s/%s %s (%s), Ping: %s ms\n", 
! 		ret[qstat_game_players_max],
! 		ret[qstat_game_players],
!                 ret[qstat_game_field], 
! 		ret[qstat_map_field],
! 		ret[qstat_ping_field]);
  	}
  





More information about the Commits mailing list