summary refs log tree commit diff stats
path: root/plugins/sysinfo
diff options
context:
space:
mode:
authorArnavion <arnavion@gmail.com>2015-01-04 16:54:15 -0800
committerArnavion <arnavion@gmail.com>2015-01-04 16:54:15 -0800
commit4f08b0b386e5d43b2603ce3a2e384adf679c3d9d (patch)
treeabb040246af01969b94201bbba756062561fd20a /plugins/sysinfo
parent5b8cc683f3523c3cbaaae680bc97cade7bc603a7 (diff)
sysinfo: Don't confuse build architecture with CPU architecture.
Diffstat (limited to 'plugins/sysinfo')
-rw-r--r--plugins/sysinfo/sysinfo.c17
1 files changed, 11 insertions, 6 deletions
diff --git a/plugins/sysinfo/sysinfo.c b/plugins/sysinfo/sysinfo.c
index 8af32c10..5f55f525 100644
--- a/plugins/sysinfo/sysinfo.c
+++ b/plugins/sysinfo/sysinfo.c
@@ -99,6 +99,12 @@ static void print_info (void)
 	char *memory_info;
 	int channel_type;
 
+#ifdef _WIN64
+	const char *build_arch = "x64";
+#else
+	const char *build_arch = "x86";
+#endif
+
 	/* Load information if not already loaded */
 
 	if (cpu_arch == 0)
@@ -149,10 +155,9 @@ static void print_info (void)
 	{
 		hexchat_commandf (
 			ph,
-			"ME ** SysInfo ** Client: HexChat %s (x%d) ** OS: %s ** CPU: %s ** RAM: %s ** VGA: %s ** Uptime: %.2f Hours **",
-			hexchat_get_info (ph, "version"),
-			cpu_arch,
-			os_name,
+			"ME ** SysInfo ** Client: HexChat %s (%s) ** OS: %s(x%d) ** CPU: %s ** RAM: %s ** VGA: %s ** Uptime: %.2f Hours **",
+			hexchat_get_info (ph, "version"), build_arch,
+			os_name, cpu_arch,
 			cpu_info,
 			memory_info,
 			vga_name,
@@ -160,8 +165,8 @@ static void print_info (void)
 	}
 	else
 	{
-		hexchat_printf (ph, " * Client:  HexChat %s (x%d)\n", hexchat_get_info (ph, "version"), cpu_arch);
-		hexchat_printf (ph, " * OS:      %s\n", os_name);
+		hexchat_printf (ph, " * Client:  HexChat %s (%s)\n", hexchat_get_info (ph, "version"), build_arch);
+		hexchat_printf (ph, " * OS:      %s(x%d)\n", os_name, cpu_arch);
 		hexchat_printf (ph, " * CPU:     %s\n", cpu_info);
 		hexchat_printf (ph, " * RAM:     %s\n", memory_info);
 		hexchat_printf (ph, " * VGA:     %s\n", vga_name);