瀏覽代碼

Tweaked RuntimeCheck descriptions

master
Pete McNeil 4 年之前
父節點
當前提交
3bf13f0602
共有 3 個檔案被更改,包括 3 行新增3 行删除
  1. 1
    1
      SNFMulti.cpp
  2. 1
    1
      snfLOGmgr.cpp
  3. 1
    1
      snfNETmgr.cpp

+ 1
- 1
SNFMulti.cpp 查看文件

@@ -284,7 +284,7 @@ int snf_RulebaseHandler::getRetiringCount(){

// FileUTC(FileName) - utility function for tagging the active rulebase

RuntimeCheck FileUTCGoodTimestampLength("SNFMulti.cpp:FileUTC snprintf(...) != CorrectTimestampLength");
RuntimeCheck FileUTCGoodTimestampLength("SNFMulti.cpp:FileUTC snprintf(...) == CorrectTimestampLength");

string FileUTC(string FileName) { // Gets a files UTC.
struct stat FileNameStat; // First we need a stat buffer.

+ 1
- 1
snfLOGmgr.cpp 查看文件

@@ -1765,7 +1765,7 @@ string& snfLOGmgr::Timestamp(string& s) {
return s; // return it.
}

RuntimeCheck LocalTimestampGoodTimestampLength("snfLOGmgr.cpp:LocalTimestamp snprintf(...) != CorrectTimestampLength");
RuntimeCheck LocalTimestampGoodTimestampLength("snfLOGmgr.cpp:LocalTimestamp snprintf(...) == CorrectTimestampLength");

string snfLOGmgr::LocalTimestamp(time_t t) { // Convert time_t to a local timestamp s.
char TimestampBfr[16]; // Create a small buffer.

+ 1
- 1
snfNETmgr.cpp 查看文件

@@ -246,7 +246,7 @@ string snfNETmgr::getReports() {
return ReportsBatch; // Return a batch of Reports.
}

RuntimeCheck RulebaseUTCGoodTimestampLength("SNFNetmgr.cpp:RulebaseUTC snprintf(...) != CorrectTimestampLength");
RuntimeCheck RulebaseUTCGoodTimestampLength("SNFNetmgr.cpp:RulebaseUTC snprintf(...) == CorrectTimestampLength");

string& snfNETmgr::RulebaseUTC(string& t) { // Gets local rulebase file UTC.
struct stat RulebaseStat; // First we need a stat buffer.

Loading…
取消
儲存