]> gitweb.hhaalo.de Git - feierabend.git/commitdiff
add print brutto worktime
authorBastian Dehn <hhaalo@arcor.de>
Wed, 12 Jun 2024 19:21:51 +0000 (21:21 +0200)
committerBastian Dehn <hhaalo@arcor.de>
Wed, 12 Jun 2024 19:21:51 +0000 (21:21 +0200)
src/main.c

index 3073b01a21e95335a9602a253e00b2cfd56826ce..6a76e1b9d6458a75ec7866f3f750e1e6bf4d6f63 100644 (file)
@@ -85,9 +85,13 @@ int main(int argc, char* argv[])
 
        printf("\n");
 
+       *worktime = get_brutto_worktime(*begin, *now);
+       get_time_str(*worktime, timestr);
+       printf("%-25s%s\n", "Brutto Arbeitzeit:", timestr);
+
        *worktime = get_current_worktime(*begin, *now);
        get_time_str(*worktime, timestr);
-       printf("%-25s%s\n", "Aktuelle Arbeitzeit:", timestr);
+       printf("%-25s%s\n", "Netto Arbeitzeit:", timestr);
 
        *worktime = get_brutto_worktime(*begin, *now);
        *worktime = get_break_time(*worktime);