File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -143,6 +143,7 @@ int main(int argc, char** argv) {
143143 CLOG (INFO) << " Collector Version: " << GetCollectorVersion ();
144144 CLOG (INFO) << " OS: " << host_info.GetDistro ();
145145 CLOG (INFO) << " Kernel Version: " << host_info.GetKernelVersion ().GetRelease ();
146+ CLOG (INFO) << " Architecture: " << host_info.GetKernelVersion ().GetMachine ();
146147
147148 initialChecks ();
148149
Original file line number Diff line number Diff line change @@ -117,6 +117,11 @@ struct KernelVersion {
117117 return release;
118118 }
119119
120+ // Same output as calling `uname -m` in the shell
121+ const std::string& GetMachine () {
122+ return machine;
123+ }
124+
120125 // the kernel version
121126 int kernel;
122127 // the kernel major version
You can’t perform that action at this time.
0 commit comments