summaryrefslogtreecommitdiff
path: root/glitchyclock.c
diff options
context:
space:
mode:
Diffstat (limited to 'glitchyclock.c')
-rw-r--r--glitchyclock.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/glitchyclock.c b/glitchyclock.c
index ab69ad6..83d7244 100644
--- a/glitchyclock.c
+++ b/glitchyclock.c
@@ -140,10 +140,10 @@ static gboolean draw_sig(GtkWidget *widget, cairo_t *cr, struct glitchyclock *gc
pango_layout_set_font_description(layout, gc->fontdesc);
seconds_elapsed = get_monotonic_seconds() - gc->real_time_last_cue;
- col = (modf(seconds_elapsed, &seconds_rounded) < 0.5) ? ':' : ' ';
+ modf(seconds_elapsed, &seconds_rounded);
real_seconds_elapsed = get_monotonic_seconds() - gc->real_time_last_reset;
- modf(real_seconds_elapsed, &real_seconds_rounded);
+ col = (modf(real_seconds_elapsed, &real_seconds_rounded) < 0.5) ? ':' : ' ';
clock_hours = gc->base_hours;
clock_minutes = gc->base_minutes;
clock_seconds = gc->base_seconds + real_seconds_rounded;