aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/displaywindow.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/displaywindow.c b/src/displaywindow.c
index 82acb58d..a5141dab 100644
--- a/src/displaywindow.c
+++ b/src/displaywindow.c
@@ -643,7 +643,11 @@ static void numbers_update(DisplayWindow *dw)
}
if ( (x>0) && (y>0) && valid ) {
- snprintf(s, 31, "%.0f", val);
+ if ( log(val)/log(10) < 5 ) {
+ snprintf(s, 31, "%.0f", val);
+ } else {
+ snprintf(s, 31, "HUGE");
+ }
} else {
strcpy(s, "--");
}