tscope cosmetics

This commit is contained in:
Kamal Mostafa 2011-05-29 12:39:21 -07:00
parent a429eff466
commit f7ae55bec8
2 changed files with 2 additions and 2 deletions

View File

@ -145,7 +145,7 @@ main( int argc, char*argv[] )
// sadly, COLUMNS is not exported by default (?)
char *columns_env = getenv("COLUMNS");
int columns = columns_env ? atoi(columns_env) : 80;
int show_nbands = ( (columns - 2 - 9) / pa_nchannels ) - 1;
int show_nbands = ( (columns - 2 - 10) / pa_nchannels ) - 1;
if ( show_nbands > nbands )
show_nbands = nbands;
char *magline = malloc(show_nbands+1);

View File

@ -36,7 +36,7 @@ tscope_print( fftwf_complex * const fftout, int nbands, float magscalar,
int one_line_mode, int show_maxmag )
{
char *buf = alloca(nbands+1);
char magchars[] = " .-=^!";
char magchars[] = " .-=#^";
if ( one_line_mode )
magchars[0] = '_';
float maxmag = 0;