From 409fd287a1c29a661b138a90b8b4334d502a1847 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Mon, 26 Apr 2010 17:24:34 +0200 Subject: hdfsee: Indicate when numbers are too big to represent --- src/displaywindow.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src') 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, "--"); } -- cgit v1.2.3