Add number of threads to INFO (#2085)

* Add number of threads to INFO

* Make the changes for the number of threads suggested by a maintainer

* Move thread_count after tcp_port

* fix the whitespace issue

* fix: whitespace

Signed-off-by: Roman Gershman <roman@dragonflydb.io>

---------

Signed-off-by: y9rabbito <66154871+y9rabbito@users.noreply.github.com>
Signed-off-by: Roman Gershman <roman@dragonflydb.io>
Co-authored-by: Roman Gershman <roman@dragonflydb.io>
This commit is contained in:
y9rabbito 2023-10-29 19:00:42 +05:30 committed by GitHub
parent 04cd2ff3f9
commit c506e4ca6e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1436,7 +1436,7 @@ void ServerFamily::Info(CmdArgList args, ConnectionContext* cntx) {
append("arch_bits", 64);
append("multiplexing_api", multiplex_api);
append("tcp_port", GetFlag(FLAGS_port));
append("thread_count", service_.proactor_pool().size());
size_t uptime = m.uptime;
append("uptime_in_seconds", uptime);
append("uptime_in_days", uptime / (3600 * 24));