Hi Jasper !
In 2010 when I started to fiddle around with xosview , I was not able to get more than four letters to work in the label part . Now I figured out that the part
that I altered that time in xosview.cc occurs several times in different files :
bitfieldmeter.cc
bitmeter.cc
fieldmeter.cc
Code: Select all
int offset;
if ( dousedlegends_ )
offset = parent_->textWidth( "XXXXXXXXXXX" );
else
offset = parent_->textWidth( "XXXXXXX" );
where the "XXXXX*" strings apparently indicate each X for a letter minus one X for linefeed or whatever (\0) .
I have left the four letters for the
void BitFieldMeter::drawused( int manditory ){
-function in bitfieldmeter.cc and fieldmeter.cc :
static const int onechar = parent_->textWidth( "X" );
static int xoffset = parent_->textWidth( "XXXXX" );
as is .
Here is some crytic explanation further down the file in the autoscale part :
/* For now, we can only print 3 characters, plus the optional
* suffix, without overprinting the legends. Thus, we can
* print 965, or we can print 34, but we can't print 34.7 (the
* decimal point takes up one character). bgrayson */
( That gbrew in my brain : proud : )
Added the
const char *label, to linux/diskmeter.cc and linux/diskmeter.h , which I looked up in lmstemp.cc , since I knew it is possible tho change the label for it in Xdefaults .

Forgot to present Xdefaults :
Code: Select all
! Disk Meter Resources
xosview*diskUsedColor: yellow
xosview*diskIdleColor: LightGreen
xosview*diskWriteColor: DarkRed
xosview*diskReadColor: orange2
xosview*diskPriority: 10
xosview*diskDecay: True
xosview*diskUsedFormat: autoscale
xosview*diskGraph: True
xosview*disk100: True
xosview*diskBandwidth100: 100000000 ! 100MB/s
xosview*disk10: True
xosview*diskBandwidth10: 10000000 ! 10MB/s
xosview*disk2: True
xosview*diskBandwidth2: 2000000 ! 2MB/s
I have chosen 2M for the USB1.1 specification .
In version 1.8.3 xosview*diskBandwidth was set to 10MB/s by default, now they increased it to 100MB/s , which I did not check before . But since you wanted it for USB mainly
But it is difficult to
http://en.wikipedia.org/wiki/Trust,_but_verify which we know it as Faith is good, control is better (
http://de.wikipedia.org/wiki/Vertrauen_ ... ist_besser![/url] -the ! seems to choke the BBcode [url] tag )
And in the Xrmcommandline.h there I disabled the possibility to fiddle with other meters now by wrapping them into the unset
#ifdef ALLEVERYTHING variable .
Todo would be to implement an option for +disk like
+disk DISKBANDWITH
, so that no hardcoded diskbandwithes in the configuration files needed .
-network maxbandwidth seems to have that already .
Hope that explains it a little .