comparison paste.h @ 10:75cfe3795de3

pasterd: improve time left on index
author David Demelier <markand@malikania.fr>
date Wed, 05 Feb 2020 15:57:33 +0100
parents 15a06aa20298
children f3ba621ab51f
comparison
equal deleted inserted replaced
9:e8f61741aaec 10:75cfe3795de3
23 #include <time.h> 23 #include <time.h>
24 24
25 #define PASTE_HOUR 3600 /*!< Seconds in one hour. */ 25 #define PASTE_HOUR 3600 /*!< Seconds in one hour. */
26 #define PASTE_DAY 86400 /*!< Seconds in one day. */ 26 #define PASTE_DAY 86400 /*!< Seconds in one day. */
27 #define PASTE_WEEK 604800 /*!< Seconds in one week. */ 27 #define PASTE_WEEK 604800 /*!< Seconds in one week. */
28 #define PASTE_MONTH 18144400 /*!< Rounded to 30 days. */ 28 #define PASTE_MONTH 2592000 /*!< Rounded to 30 days. */
29 29
30 /** 30 /**
31 * \brief Paste structure. 31 * \brief Paste structure.
32 * 32 *
33 * Every string in the paste is assumed to be allocated on the heap. 33 * Every string in the paste is assumed to be allocated on the heap.