shithub: orca

Download patch

ref: 0a224fa2c57bea021468d96ccaf1968e89dc2c47
parent: fe6df133702f992ac2e919ff538e063b4e9510e4
author: cancel <cancel@cancel.fm>
date: Fri Dec 21 05:54:16 EST 2018

Add back (ifdef'd out) old timing table

--- a/tui_main.c
+++ b/tui_main.c
@@ -1905,6 +1905,7 @@
         doupdate();
       double secs_to_d = ged_secs_to_deadline(&ged_state);
       int new_timeout;
+#if 1
       if (secs_to_d < ms_to_sec(0.5)) {
         new_timeout = 0;
       } else if (secs_to_d < ms_to_sec(1.5)) {
@@ -1932,6 +1933,27 @@
       } else {
         new_timeout = 50;
       }
+#else
+      if (secs_to_d < ms_to_sec(0.5)) {
+        new_timeout = 0;
+      } else if (secs_to_d < ms_to_sec(1.0)) {
+        new_timeout = 0;
+      } else if (secs_to_d < ms_to_sec(2.0)) {
+        new_timeout = 1;
+      } else if (secs_to_d < ms_to_sec(7.0)) {
+        new_timeout = 2;
+      } else if (secs_to_d < ms_to_sec(15.0)) {
+        new_timeout = 5;
+      } else if (secs_to_d < ms_to_sec(25.0)) {
+        new_timeout = 10;
+      } else if (secs_to_d < ms_to_sec(50.0)) {
+        new_timeout = 20;
+      } else if (secs_to_d < ms_to_sec(100.0)) {
+        new_timeout = 40;
+      } else {
+        new_timeout = 50;
+      }
+#endif
       if (new_timeout != cur_timeout) {
         wtimeout(stdscr, new_timeout);
         cur_timeout = new_timeout;