aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCalvin Morrison <mutantturkey@gmail.com>2013-11-30 15:43:19 -0500
committerCalvin Morrison <mutantturkey@gmail.com>2013-11-30 15:43:19 -0500
commit9df2cdaa4f874ca4fe1a555561878317a9ce3957 (patch)
treedb0f2d993cb316beae0ffbf03beb20347c15e253
parentafa05b20dc460d22824f62fe3a0422dd5dd4a961 (diff)
only show 1 decimal place, and add copyright notices for original author
-rw-r--r--README.md1
-rw-r--r--gstopwatch.c8
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 <http://www.gnu.org/licenses/>.
+**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);