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

List:       os-sim-commits
Subject:    [Os-sim-commits] agent/ossim_agent Threshold.py,1.10,1.11
From:       David Gil <dvgil () users ! sourceforge ! net>
Date:       2008-01-17 10:00:38
Message-ID: E1JFRY8-0000iV-0Y () mail ! sourceforge ! net
[Download RAW message or body]

Update of /cvsroot/os-sim/agent/ossim_agent
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv7431

Modified Files:
	Threshold.py 
Log Message:
Server is not working properly with the occurrences field, may be we will use
an userdataX field until this is fixed..


Index: Threshold.py
===================================================================
RCS file: /cvsroot/os-sim/agent/ossim_agent/Threshold.py,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- Threshold.py	12 Dec 2007 17:17:59 -0000	1.10
+++ Threshold.py	17 Jan 2008 10:00:36 -0000	1.11
@@ -13,6 +13,7 @@
     # name of consolidation section at config.cfg
     CONSOLIDATION_SECTION = "event-consolidation"
     MAX_TIME = 60.0
+    EVENT_OCCURRENCES = "occurrences" # event field for occurrences value
 
     def __init__(self, conf):
         self._conf = conf
@@ -140,7 +141,8 @@
             if event_tmp.has_key(str_event):
                 occurrences = int(event_tmp[str_event])
                 if occurrences > 1:
-                    event["occurrences"] = str(occurrences)
+                    event[EventConsolidation.EVENT_OCCURRENCES] = \
+                        str(occurrences)
 
             if date: event["date"] = date
             if log:  event["log"] = log


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
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