From 6427d127aaedcf7f68f7ad7438c5ffb284b8c9aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Stenberg?= Date: Sat, 10 Jan 2009 21:10:56 +0000 Subject: Calculate watermark from bitrate and harddisk spinup time. Use a smaller PCM buffer on targets with 2MB or less ram. (FS#9703) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19743 a1c6a512-1295-4272-9138-f99709370657 --- apps/debug_menu.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'apps/debug_menu.c') diff --git a/apps/debug_menu.c b/apps/debug_menu.c index 7567c64..10d69b0 100644 --- a/apps/debug_menu.c +++ b/apps/debug_menu.c @@ -329,14 +329,14 @@ static bool dbg_buffering_thread(void) bufused = bufsize - pcmbuf_free(); - snprintf(buf, sizeof(buf), "pcm: %7ld/%7ld", (long) bufused, (long) bufsize); + snprintf(buf, sizeof(buf), "pcm: %6ld/%ld", (long) bufused, (long) bufsize); lcd_puts(0, line++, buf); gui_scrollbar_draw(&screens[SCREEN_MAIN],0, line*8, LCD_WIDTH, 6, bufsize, 0, bufused, HORIZONTAL); line++; - snprintf(buf, sizeof(buf), "alloc: %8ld/%8ld", audio_filebufused(), + snprintf(buf, sizeof(buf), "alloc: %6ld/%ld", audio_filebufused(), (long) filebuflen); lcd_puts(0, line++, buf); @@ -345,7 +345,7 @@ static bool dbg_buffering_thread(void) filebuflen, 0, audio_filebufused(), HORIZONTAL); line++; - snprintf(buf, sizeof(buf), "real: %8ld/%8ld", (long)d.buffered_data, + snprintf(buf, sizeof(buf), "real: %6ld/%ld", (long)d.buffered_data, (long)filebuflen); lcd_puts(0, line++, buf); @@ -354,7 +354,7 @@ static bool dbg_buffering_thread(void) line++; #endif - snprintf(buf, sizeof(buf), "usefl: %8ld/%8ld", (long)(d.useful_data), + snprintf(buf, sizeof(buf), "usefl: %6ld/%ld", (long)(d.useful_data), (long)filebuflen); lcd_puts(0, line++, buf); @@ -383,7 +383,7 @@ static bool dbg_buffering_thread(void) { int boostquota = boost_ticks * 1000 / ticks; /* in 0.1 % */ int avgclock = freq_sum * 10 / ticks; /* in 100 kHz */ - snprintf(buf, sizeof(buf), "boost ratio: %3d.%d%% (%2d.%dMHz)", + snprintf(buf, sizeof(buf), "boost:%3d.%d%% (%d.%dMHz)", boostquota/10, boostquota%10, avgclock/10, avgclock%10); lcd_puts(0, line++, buf); } -- cgit v1.1