From 9df2cdaa4f874ca4fe1a555561878317a9ce3957 Mon Sep 17 00:00:00 2001 From: Calvin Morrison Date: Sat, 30 Nov 2013 15:43:19 -0500 Subject: only show 1 decimal place, and add copyright notices for original author --- README.md | 1 + gstopwatch.c | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index d17b60f..803bdfa 100644 --- a/README.md +++ b/README.md @@ -29,4 +29,5 @@ License You should have received a copy of the GNU General Public License along with this program. If not, see . +**Copyright © 2013** Calvin Morrison (mutantturkey@gmail.com com) **Copyright © 2013** Jente (jthidskes at outlook dot com) diff --git a/gstopwatch.c b/gstopwatch.c index f6222f2..be89abe 100644 --- a/gstopwatch.c +++ b/gstopwatch.c @@ -1,7 +1,7 @@ -/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*- */ -/* - * gstopwatch +/* gstopwatch + * * Copyright (C) 2013 Jente (jthidskes at outlook dot com) + * Copyright (C) 2013 Calvin Morrison (mutantturkey@gmail.com) * * gstopwatch is free software: you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -61,7 +61,7 @@ gboolean stopwatch_function (void) { minutes = seconds / 60; seconds -= 60 * minutes; if(show_milliseconds) - sprintf(output, "%02d:%02d:%.2f", hours, minutes, seconds); + sprintf(output, "%02d:%02d:%.1f", hours, minutes, seconds); else sprintf(output, "%02d:%02d:%02d", hours, minutes, (int)seconds); -- cgit v1.2.1