aboutsummaryrefslogtreecommitdiff
path: root/gstopwatch.c
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 /gstopwatch.c
parentafa05b20dc460d22824f62fe3a0422dd5dd4a961 (diff)
only show 1 decimal place, and add copyright notices for original author
Diffstat (limited to 'gstopwatch.c')
-rw-r--r--gstopwatch.c8
1 files changed, 4 insertions, 4 deletions
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);