]> git.ipfire.org Git - thirdparty/snort3.git/commitdiff
Pull request #4057: profiler: extend field length to support uint64
authorAkhilesh MY (amuttuva) <amuttuva@cisco.com>
Tue, 17 Oct 2023 09:40:03 +0000 (09:40 +0000)
committerShanmugam S (shanms) <shanms@cisco.com>
Tue, 17 Oct 2023 09:40:03 +0000 (09:40 +0000)
Merge in SNORT/snort3 from ~AMUTTUVA/snort3:time_profiler_field to master

Squashed commit of the following:

commit 369b82cb73598a157ebe1769ebd2bed1da52b525
Author: Akhilesh MY <amuttuva@cisco.com>
Date:   Tue Oct 17 01:45:39 2023 -0400

    profiler: extend field length to support uint64

src/profiler/time_profiler.cc

index 2a442019ae1697c2a42715a39e86fb9c8f95b03b..b4c2c1dc8f2e1162e54ebdc0296c7a6f3c0c10b1 100644 (file)
@@ -52,9 +52,9 @@ static const StatsTable::Field fields[] =
     { "#", 5, ' ', 0, std::ios_base::left },
     { "module", 24, ' ', 0, std::ios_base::fmtflags() },
     { "layer", 6, ' ', 0, std::ios_base::fmtflags() },
-    { "checks", 10, ' ', 0, std::ios_base::fmtflags() },
-    { "time(us)", 11, ' ', 0, std::ios_base::fmtflags() },
-    { "avg/check", 11, ' ', 1, std::ios_base::fmtflags() },
+    { "checks", 21, ' ', 0, std::ios_base::fmtflags() },
+    { "time(us)", 21, ' ', 0, std::ios_base::fmtflags() },
+    { "avg/check", 21, ' ', 1, std::ios_base::fmtflags() },
     { "%/caller", 10, ' ', 2, std::ios_base::fmtflags() },
     { "%/total", 9, ' ', 2, std::ios_base::fmtflags() },
     { nullptr, 0, '\0', 0, std::ios_base::fmtflags() }