[comp.windows.x] label bars with short hostnames in xcpustate.

emv@math.lsa.umich.edu (Edward Vielmetti) (06/03/90)

xcpustate, when used on a bsd-ish system, puts the result of
gethostbyname() into the label for the bar depicting load
average.  on systems around here that's a very long thing,
like "whirlwind.math.lsa.umich.edu".  I'd like to have it
changable to be just "whirlwind".

it's not clear to me from the code how that should be done;
I don't know whether the name of the bar is in some resource
I can pop with "xcpustate -xrm <magic>" or override in a
defaults file, or whether it's necessary to go in and change
s-bsd.c to pop out the first period.

thanks.

--Ed

Edward Vielmetti, U of Michigan math dept <emv@math.lsa.umich.edu>