about summary refs log tree commit diff stats
path: root/about.c
diff options
context:
space:
mode:
Diffstat (limited to 'about.c')
-rw-r--r--about.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/about.c b/about.c
index b609567..655de9a 100644
--- a/about.c
+++ b/about.c
@@ -954,7 +954,8 @@ xtp_handle_rt(struct tab *t, uint8_t cmd, int id, const char *query)
 					modify = 1;
 				break;
 			case XT_S_FLOAT:
-				if (atof(val) != *rs[i].fval)
+				if (atof(val) < (*rs[i].fval - 0.0001) ||
+				    atof(val) > (*rs[i].fval + 0.0001))
 					modify = 1;
 				break;
 			case XT_S_STR: