diff options
author | dec05eba <dec05eba@protonmail.com> | 2021-08-01 00:26:57 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2021-08-01 00:26:57 +0200 |
commit | aead89cca00cba7bef8752163752f6a9c213ae6f (patch) | |
tree | 53732517adf900839b312818870718363596b0d8 /src/Utils.cpp | |
parent | 31976fb2d19be13fb87d835ea8578356cafaa7db (diff) |
4chan: fix last posted timestamp being incorrect (when saved to disk)
Diffstat (limited to 'src/Utils.cpp')
-rw-r--r-- | src/Utils.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/Utils.cpp b/src/Utils.cpp index 3032f22..c73932b 100644 --- a/src/Utils.cpp +++ b/src/Utils.cpp @@ -126,13 +126,4 @@ namespace QuickMedia { strftime(time_str, sizeof(time_str) - 1, "%Y %b %d, %a %H:%M", &time_tm); return time_str; } - - int64_t get_unix_time_monotonic() { - struct timespec t; - if(clock_gettime(CLOCK_MONOTONIC, &t) == -1) { - fprintf(stderr, "This kernel version doesn't support CLOCK_MONOTONIC\n"); - abort(); - } - return t.tv_sec; - } }
\ No newline at end of file |