From: Michael Stapelberg Date: Sat, 29 Sep 2012 15:30:39 +0000 (+0200) Subject: include time in paper trail when adding a new credit X-Git-Tag: rgb2rv9~9 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=6235de8717bd80575600a70594e0564db9404519;p=c128-kasse include time in paper trail when adding a new credit --- diff --git a/src/credit_manager.c b/src/credit_manager.c index 8230890..a76c128 100644 --- a/src/credit_manager.c +++ b/src/credit_manager.c @@ -92,6 +92,7 @@ void deposit_credit(char *input) { static void new_credit() { char *input, *name; + char *time; int credit; if (credits.num_items == 75) { @@ -111,7 +112,8 @@ static void new_credit() { strcpy(credits.credits[credits.num_items].nickname, name); credits.credits[credits.num_items].credit = credit; - sprintf(print_buffer, "%cGuthaben mit %d Cent fuer %s angelegt\r", 17, credit, name); + time = get_time(); + sprintf(print_buffer, "%c%s - Guthaben mit %d Cent fuer %s angelegt\r", 17, time, credit, name); print_the_buffer(); credits.num_items++;