Change relative time for now to only work in the past and not show a

sign which is more useful. Also tidy up some minor style nits.
This commit is contained in:
nicm
2026-06-13 08:59:52 +00:00
parent b3deb9ec86
commit 34a6a9d3a1
5 changed files with 22 additions and 28 deletions

View File

@@ -175,7 +175,7 @@ window_clock_init(struct window_mode_entry *wme,
struct window_clock_mode_data *data;
struct screen *s;
wme->data = data = xmalloc(sizeof *data);
wme->data = data = xcalloc(1, sizeof *data);
data->tim = time(NULL);
evtimer_set(&data->timer, window_clock_timer_callback, wme);