diff options
| author | Björn Stenberg <bjorn@haxx.se> | 2009-01-10 21:10:56 +0000 |
|---|---|---|
| committer | Björn Stenberg <bjorn@haxx.se> | 2009-01-10 21:10:56 +0000 |
| commit | 6427d127aaedcf7f68f7ad7438c5ffb284b8c9aa (patch) | |
| tree | 838ba17c13ab4f2ee3333ea38f3e79604490069d /apps/debug_menu.c | |
| parent | 12b8f8de892920a99d9740f2e26fa7c4811de5b6 (diff) | |
| download | rockbox-6427d127aaedcf7f68f7ad7438c5ffb284b8c9aa.zip rockbox-6427d127aaedcf7f68f7ad7438c5ffb284b8c9aa.tar.gz rockbox-6427d127aaedcf7f68f7ad7438c5ffb284b8c9aa.tar.bz2 rockbox-6427d127aaedcf7f68f7ad7438c5ffb284b8c9aa.tar.xz | |
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
Diffstat (limited to 'apps/debug_menu.c')
| -rw-r--r-- | apps/debug_menu.c | 10 |
1 files changed, 5 insertions, 5 deletions
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); } |