mirror of
https://github.com/zeek/zeek.git
synced 2025-10-10 02:28:21 +00:00
Prettify file analysis IDs to be more like connection uids.
This commit is contained in:
parent
f8af42cf9a
commit
ceb471fb36
10 changed files with 136 additions and 77 deletions
|
@ -1,8 +1,9 @@
|
|||
#ifndef FILE_ANALYSIS_INFOTIMER_H
|
||||
#define FILE_ANALYSIS_INFOTIMER_H
|
||||
|
||||
#include "Timer.h"
|
||||
#include <string>
|
||||
#include "Timer.h"
|
||||
#include "FileID.h"
|
||||
|
||||
namespace file_analysis {
|
||||
|
||||
|
@ -12,7 +13,7 @@ namespace file_analysis {
|
|||
class InfoTimer : public Timer {
|
||||
public:
|
||||
|
||||
InfoTimer(double t, const string& id, double interval)
|
||||
InfoTimer(double t, const FileID& id, double interval)
|
||||
: Timer(t + interval, TIMER_FILE_ANALYSIS_INACTIVITY), file_id(id) {}
|
||||
|
||||
~InfoTimer() {}
|
||||
|
@ -25,7 +26,7 @@ public:
|
|||
|
||||
protected:
|
||||
|
||||
string file_id;
|
||||
FileID file_id;
|
||||
};
|
||||
|
||||
} // namespace file_analysis
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue