about summary refs log tree commit diff homepage
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2018-08-25 00:44:51 -0400
committerJune McEnroe <june@causal.agency>2018-08-25 00:44:51 -0400
commitb9fc50f0259c22d9e4ef3f3e96b46d276b0c5d26 (patch)
tree52fb6685417090174ed4fd01eff30dcf8182d94f
parentCalculate min and max meta for map server-side (diff)
downloadtorus-b9fc50f0259c22d9e4ef3f3e96b46d276b0c5d26.tar.gz
torus-b9fc50f0259c22d9e4ef3f3e96b46d276b0c5d26.zip
Send now in map
Diffstat (limited to '')
-rw-r--r--server.c1
-rw-r--r--torus.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/server.c b/server.c
index 4c62b70..b8cf76a 100644
--- a/server.c
+++ b/server.c
@@ -290,6 +290,7 @@ static bool clientMap(const struct Client *client) {
 
 	time_t now = time(NULL);
 	struct Map map = {
+		.now = now,
 		.min = {
 			.createTime = now,
 			.modifyTime = now,
diff --git a/torus.h b/torus.h
index 8194839..d446488 100644
--- a/torus.h
+++ b/torus.h
@@ -104,6 +104,7 @@ enum {
 };
 
 struct Map {
+	time_t now;
 	struct Meta min;
 	struct Meta max;
 	struct Meta meta[MAP_ROWS][MAP_COLS];
06-10Switch to jorts Install scriptJune McEnroe 2022-06-08Indicate if still reading or no resultsJune McEnroe 2022-06-08Add Maiden, Mother, CroneJune McEnroe Mixed bag like most collections of short stories. Some of them are pretty good. The author of the worst written story also has the worst written bio. 2022-06-05FIRST SHOW IN 2.5 YEARS BABEY!!!June McEnroe 2022-06-03Set line number on File linesJune McEnroe 2022-06-03Stop polling stdin after EOFJune McEnroe 2022-06-02Set TABSIZE=4June McEnroe Absolutely indiscriminately. 2022-06-02Do basic match highlightingJune McEnroe 2022-06-02Clean up parsing a littleJune McEnroe 2022-06-02Don't duplicate path stringJune McEnroe 2022-06-02Use stderr instead of /dev/tty, realloc buffer if lines too longJune McEnroe For some reason I haven't been able to figure out, trying to poll /dev/tty returns POLLNVAL (and this was using 100% CPU looping), but using stderr instead works fine. 2022-06-02Add initial working version of qfJune McEnroe 2022-05-29Set prompt for okshJune McEnroe