From 23fba266a9454ee6ca095b7f6eccf523f6526607 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Sat, 2 Mar 2019 09:41:24 +0000 Subject: Save pending changes in 1.0.0.0 branch --- src/state/hpr_wall_seconds.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 src/state/hpr_wall_seconds.c (limited to 'src/state/hpr_wall_seconds.c') diff --git a/src/state/hpr_wall_seconds.c b/src/state/hpr_wall_seconds.c new file mode 100644 index 0000000..6c0363b --- /dev/null +++ b/src/state/hpr_wall_seconds.c @@ -0,0 +1,12 @@ +/* ISC license. */ + +#include "hpr.h" + +void hpr_wall_seconds (unsigned int secs) +{ + char buf[300] = HPR_WALL_BANNER ; + size_t n = sizeof(HPR_WALL_BANNER) - 1 ; + n += hpr_fmttime(buf + n, 300 - n, secs) ; + buf[n++] = 0 ; + hpr_wall(buf) ; +} -- cgit v1.2.3