1
0
mirror of https://github.com/moparisthebest/hexchat synced 2024-11-29 12:42:16 -05:00

print system info in one line for others

This commit is contained in:
Berke Viktor 2011-12-03 18:52:13 +01:00
parent 6b53f899ae
commit a2f84209c0

View File

@ -363,15 +363,15 @@ printInfo (char *word[], char *word_eol[], void *user_data)
} }
if (xchat_list_int (ph, NULL, "type") >= 2) if (xchat_list_int (ph, NULL, "type") >= 2)
{ {
/* xchat_commandf (ph, "ME * WinSys - system details *"); /* uptime will work correctly for up to 50 days, should be enough */
xchat_commandf (ph, "ME ***************************"); */ xchat_commandf (ph, "ME ** Client: XChat-WDK %s (x%d) ** OS: %s ** CPU: %s (%s) ** RAM: %s ** VGA: %s ** Uptime: %.2f Hours **",
xchat_commandf (ph, "ME * Client: XChat-WDK %s (x%d)", xchat_get_info (ph, "wdk_version"), getCpuArch ()); xchat_get_info (ph, "wdk_version"),
xchat_commandf (ph, "ME * OS: %s", wmiOs); getCpuArch (),
xchat_commandf (ph, "ME * CPU: %s (%s)", wmiCpu, getCpuMhz ()); wmiOs,
xchat_commandf (ph, "ME * RAM: %s", getMemoryInfo ()); wmiCpu,
xchat_commandf (ph, "ME * VGA: %s", wmiVga); getCpuMhz (),
/* will work correctly for up to 50 days, should be enough */ getMemoryInfo (),
xchat_commandf (ph, "ME * Uptime: %.2f Hours", (float) GetTickCount() / 1000 / 60 / 60); wmiVga, (float) GetTickCount() / 1000 / 60 / 60);
} }
else else
{ {