From 75079ac9713a9937d489adbdc300d66a1290d177 Mon Sep 17 00:00:00 2001 From: dam Date: Wed, 24 Aug 2022 01:09:46 +0000 Subject: Add modified_on field to task_t. --- main.c | 1 + readme.md | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/main.c b/main.c index e32c378..05719c1 100644 --- a/main.c +++ b/main.c @@ -29,6 +29,7 @@ typedef struct { char name[MAX_TASK_NAME+1]; // Allow space for null termination char. uint32_t time[7]; + uint64_t modified_on; uint8_t state; } task_t; diff --git a/readme.md b/readme.md index 8489b9f..5f40c50 100644 --- a/readme.md +++ b/readme.md @@ -11,7 +11,7 @@ Task Time Tracker - [x] Decide once for all if I'll be using uint8_t or char for strings: use char. - [x] maybe rename to task-time-tracker? - [x] Remove hash stuff; -- [ ] Tasks should have a `modified_on` timestamp field; +- [x] Tasks should have a `modified_on` timestamp field; - [ ] Status of task will allow to keep counting time even when the process gets terminated forcefully; - [ ] Make sure task names don't include commas ','; - [ ] Review code: char !uint8_t; -- cgit v1.2.3