aboutsummarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAntony Kellermann2018-09-26 11:56:19 -0400
committerAntony Kellermann2018-09-26 11:56:19 -0400
commited1a0fedfebd63e94aac10e9b118f94f910915df (patch)
tree07e7bd43a7ff6de1c8aab6f6ada48cc8b258f76d
parent6ce9dec53f75a3fec227614ecc219790afbaea38 (diff)
downloadaur-ed1a0fedfebd63e94aac10e9b118f94f910915df.tar.gz
Redefined days to business days ratio and moved to api.h
-rw-r--r--api.h2
-rw-r--r--curses_win.h1
2 files changed, 2 insertions, 1 deletions
diff --git a/api.h b/api.h
index 488adbbbba00..866fa0616fa0 100644
--- a/api.h
+++ b/api.h
@@ -28,6 +28,8 @@ typedef enum data_level {
#define QUARTERS 4
#define EMPTY (-999)
+#define DAYS_TO_BUSINESS_DAYS_RATIO (365.25 / 251.89)
+
#include <stddef.h>
#include <curl/curl.h>
#include <json-c/json_tokener.h>
diff --git a/curses_win.h b/curses_win.h
index 661536d11798..ce6e4f8e30b3 100644
--- a/curses_win.h
+++ b/curses_win.h
@@ -16,7 +16,6 @@
#define ROWS_SPACING 5
#define COLS_SPACING 12
-#define DAYS_TO_BUSINESS_DAYS_RATIO (29.0/20.0)
#define RED COLOR_PAIR(1)
#define BLACK COLOR_PAIR(2)