Skip to content

Commit 540ecf3

Browse files
committed
++ cache
1 parent c051c84 commit 540ecf3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

storage/cache.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -673,10 +673,10 @@ void NHTFlowCache::prefetch_export_expired() const
673673
}
674674
}
675675
#ifdef WITH_CTT
676-
void NHTFlowCache::set_ctt_config(const std::string& device_name, unsigned comp_index)
676+
void NHTFlowCache::set_ctt_config(const std::string& device_name, unsigned channel_id)
677677
{
678678
m_ctt_device = device_name;
679-
m_ctt_comp_index = comp_index;
679+
m_ctt_comp_index = comp_index/16;
680680
}
681681
#endif /* WITH_CTT */
682682

storage/cache.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ class NHTFlowCache : TelemetryUtils, public StoragePlugin
118118
FlowRecordStats m_flow_record_stats = {};
119119
FlowCacheStats m_cache_stats = {};
120120
#ifdef WITH_CTT
121-
void set_ctt_config(const std::string& device_name, unsigned comp_index) override;
121+
void set_ctt_config(const std::string& device_name, unsigned channel_id) override;
122122
std::string m_ctt_device;
123123
unsigned m_ctt_comp_index;
124124
CttController m_ctt_controller;

0 commit comments

Comments
 (0)