@@ -112,16 +112,16 @@ int main(int argc, char** argv)
112112 try {
113113 program.add_argument (" -s" , " --size" )
114114 .required ()
115- .help (" Size of the hash map. Default value is 2^20 for 1' 048'576 records ." )
115+ .help (" Exponent N for the hash map size (2^N entries). Default: 20 (~1 048 576) ." )
116116 .default_value (Deduplicator::Deduplicator::DeduplicatorHashMap::
117117 TimeoutHashMapParameters::DEFAULT_HASHMAP_EXPONENT)
118- .scan <' i ' , int >();
118+ .scan <' u ' , uint32_t >();
119119 program.add_argument (" -t" , " --timeout" )
120120 .required ()
121121 .help (
122- " Count of millisecond to consider flows as duplicates. Default value is 5000(5s)." )
122+ " Count of millisecond to consider flows as duplicates. Default value is 5000 (5s)." )
123123 .default_value (Deduplicator::Deduplicator::DEFAULT_HASHMAP_TIMEOUT)
124- .scan <' i ' , int >();
124+ .scan <' u ' , uint64_t >();
125125 program.add_argument (" -m" , " --appfs-mountpoint" )
126126 .required ()
127127 .help (" path where the appFs directory will be mounted" )
@@ -161,7 +161,7 @@ int main(int argc, char** argv)
161161 std::cerr << " Table size must be at least 8.\n " ;
162162 return EXIT_FAILURE;
163163 }
164- const auto timeout = program.get <uint32_t >(" --timeout" );
164+ const auto timeout = program.get <uint64_t >(" --timeout" );
165165 if (timeout <= 0 ) {
166166 std::cerr << " Timeout must be higher than zero.\n " ;
167167 return EXIT_FAILURE;
@@ -185,6 +185,7 @@ int main(int argc, char** argv)
185185 biInterface.setRequieredFormat (
186186 " uint16 SRC_PORT, uint16 DST_PORT, ipaddr DST_IP,ipaddr SRC_IP, uint64 LINK_BIT_FIELD, "
187187 " uint8 PROTOCOL, time TIME_LAST" );
188+ deduplicator.updateUnirecIds ();
188189 processUnirecRecords (biInterface, deduplicator);
189190
190191 } catch (std::exception& ex) {
0 commit comments