From 09cc3e604d79fca8ca8bb6add2895732926880d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C3=ABl=20Carr=C3=A9?= Date: Mon, 31 May 2010 12:37:29 +0000 Subject: [PATCH] battery_bench: comment the battery_bench.txt header with '#' gnuplot will ignore lines which begin with '#' Split a line so the output will fit in 80 columns git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26430 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/battery_bench.c | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/apps/plugins/battery_bench.c b/apps/plugins/battery_bench.c index 945abe924d..29fe4a484a 100644 --- a/apps/plugins/battery_bench.c +++ b/apps/plugins/battery_bench.c @@ -529,28 +529,28 @@ int main(void) if (fd >= 0) { rb->fdprintf(fd, - "This plugin will log your battery performance in a\n" - "file (%s) every minute.\n" - "To properly test your battery:\n" - "1) Select and playback an album. " - "(Be sure to be more than the player's buffer)\n" - "2) Set to repeat.\n" - "3) Let the player run completely out of battery.\n" - "4) Recharge and copy (or whatever you want) the txt file to " - "your computer.\n" - "Now you can make graphs with the data of the battery log.\n" - "Do not enter another plugin during the test or else the " - "logging activity will end.\n\n" - "P.S: You can decide how you will make your tests.\n" - "Just don't open another plugin to be sure that your log " + "# This plugin will log your battery performance in a\n" + "# file (%s) every minute.\n" + "# To properly test your battery:\n" + "# 1) Select and playback an album. " + "# (Be sure to be more than the player's buffer)\n" + "# 2) Set to repeat.\n" + "# 3) Let the player run completely out of battery.\n" + "# 4) Recharge and copy (or whatever you want) the txt file to " + "# your computer.\n" + "# Now you can make graphs with the data of the battery log.\n" + "# Do not enter another plugin during the test or else the \n" + "# logging activity will end.\n\n" + "# P.S: You can decide how you will make your tests.\n" + "# Just don't open another plugin to be sure that your log " "will continue.\n\n",BATTERY_LOG); rb->fdprintf(fd, - "Battery bench run for %s version %s\n\n" + "# Battery bench run for %s version %s\n\n" ,MODEL_NAME,rb->rbversion); rb->fdprintf(fd, - "Battery type: %d mAh Buffer Entries: %d\n" - " Time:, Seconds:, Level:, Time Left:, Voltage[mV]:" + "# Battery type: %d mAh Buffer Entries: %d\n" + "# Time:, Seconds:, Level:, Time Left:, Voltage[mV]:" #if CONFIG_CHARGING ", C:" #endif