Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!mstar!mstar.morningstar.com!bob From: bob@MorningStar.Com (Bob Sutterfield) Newsgroups: comp.windows.x Subject: xcpustate - helpful label Message-ID: Date: 11 Jan 90 18:03:29 GMT Sender: news@MorningStar.COM (USENET Administrator) Reply-To: bob@MorningStar.Com (Bob Sutterfield) Organization: Morning Star Technologies Lines: 18 This makes a pile of xcpustate bars (each running on a different machine) easier to decipher: *** X.V11R4/contrib/clients/xcpustate/s-bsd.c.dist Thu Jan 4 18:28:06 1990 --- X.V11R4/contrib/clients/xcpustate/s-bsd.c Thu Jan 11 12:56:25 1990 *************** *** 33,38 **** --- 33,43 ---- { static char *name[] = {"CPU states"}; + if ((gethostname(name[0], MAXHOSTNAMELEN)) < 0) + { + perror("gethostname"); + } + return name; }