[prev in list] [next in list] [prev in thread] [next in thread] 

List:       os-sim-commits
Subject:    [Os-sim-commits] os-sim/src sim-organizer.c,1.199,1.200 sim-session.c,1.98,1.99
From:       Alberto Román Linacero <alberto_r () users ! sourceforge ! net>
Date:       2006-04-21 14:38:20
Message-ID: E1FWwm6-0002WQ-0K () mail ! sourceforge ! net
[Download RAW message or body]

Update of /cvsroot/os-sim/os-sim/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27141

Modified Files:
	sim-organizer.c sim-session.c 
Log Message:
comments


Index: sim-session.c
===================================================================
RCS file: /cvsroot/os-sim/os-sim/src/sim-session.c,v
retrieving revision 1.98
retrieving revision 1.99
diff -u -d -r1.98 -r1.99
--- sim-session.c	20 Apr 2006 16:35:46 -0000	1.98
+++ sim-session.c	21 Apr 2006 14:38:17 -0000	1.99
@@ -1636,6 +1636,8 @@
 
 }
 
+
+
 /*
  *
  *

Index: sim-organizer.c
===================================================================
RCS file: /cvsroot/os-sim/os-sim/src/sim-organizer.c,v
retrieving revision 1.199
retrieving revision 1.200
diff -u -d -r1.199 -r1.200
--- sim-organizer.c	18 Apr 2006 14:14:40 -0000	1.199
+++ sim-organizer.c	21 Apr 2006 14:38:17 -0000	1.200
@@ -231,7 +231,7 @@
 /*
  *
  * This is usefull only if the event has the "Alarm" flag.
- * We also assign here an event->id (if it hasn't got anyone)
+ * We also assign here an event->id (if it hasn't got anyone, like the first time \
                the event arrives)
  *
  */
 void
@@ -248,7 +248,7 @@
     return;
 
 				
-  if (!event->id)
+  if (!event->id)	
 	{
     sim_container_db_insert_event_ul (ossim.container, ossim.dbossim, event); //the \
event (wooops, I mean, the Alarm) is new  g_log (G_LOG_DOMAIN, G_LOG_LEVEL_DEBUG, \
"insert_event_alarm: Inserting new event Into Alarms"); @@ -514,7 +514,9 @@
 	if (event->plugin_id == 0)
 		event->store_in_DB = FALSE;
 
-  /* Get the reliability of the plugin sid */
+  // Get the reliability of the plugin sid. There are a reliability inside the \
directive, but the +	// reliability from the plugin is more important. So we usually \
try to get the plugin reliability +	// and assign it to the event.
   if ((event->reliability == 1) && (event->plugin_id != SIM_PLUGIN_ID_DIRECTIVE))
   {
 	  gint aux;
@@ -549,6 +551,7 @@
 	    }
     }
 
+		//check if the source could be an alarm. This our (errr) "famous" formula!
     event->risk_c = ((double) (event->priority * event->asset_src * \
event->reliability)) / 10;  if (event->risk_c < 0)
 			event->risk_c = 0;



-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Os-sim-commits mailing list
Os-sim-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/os-sim-commits


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic