summaryrefslogtreecommitdiff
path: root/snac.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2022-09-20 12:00:13 +0200
committerdefault <nobody@localhost>2022-09-20 12:00:13 +0200
commit5d843a488ec349d94e22314e90a73885ebfce007 (patch)
treece103859ce4d4ee90564192cd56160a54cf61a71 /snac.c
parent065773c70377567f7c6669b752ca51b27bef8ad3 (diff)
New function enqueue().
Diffstat (limited to 'snac.c')
-rw-r--r--snac.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/snac.c b/snac.c
index 3ba3d38..fc1fe7b 100644
--- a/snac.c
+++ b/snac.c
@@ -42,7 +42,7 @@ d_char *xs_time(char *fmt, int local)
}
-d_char *tid(void)
+d_char *tid(int offset)
/* returns a time-based Id */
{
struct timeval tv;
@@ -50,7 +50,7 @@ d_char *tid(void)
gettimeofday(&tv, &tz);
- return xs_fmt("%10d.%06d", tv.tv_sec, tv.tv_usec);
+ return xs_fmt("%10d.%06d", tv.tv_sec + offset, tv.tv_usec);
}