Changeset 50a5db2 in nscp for include/NSCHelper.cpp


Ignore:
Timestamp:
01/17/10 15:26:29 (3 years ago)
Author:
Michael Medin <michael@…>
Branches:
master, 0.4.0, 0.4.1, 0.4.2
Children:
ef0e24b
Parents:
6822839
Message:

Fixed some logica issues and changed so debug logging work on *nix (cout -> wcout)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • include/NSCHelper.cpp

    r1bfe6f0 r50a5db2  
    108108bool NSCHelper::report::matches(unsigned int report, NSCAPI::nagiosReturn code) { 
    109109  return ( 
    110     (code == NSCAPI::returnOK && (report&REPORT_OK)==REPORT_OK) || 
     110    (code == NSCAPI::returnOK && ((report&REPORT_OK)==REPORT_OK) ) || 
    111111    (code == NSCAPI::returnCRIT && ((report&REPORT_ERROR)==REPORT_ERROR) ) || 
    112112    (code == NSCAPI::returnWARN && ((report&REPORT_WARNING)==REPORT_WARNING) ) || 
Note: See TracChangeset for help on using the changeset viewer.