chiark / gitweb /
slopecalc: get abs interpolations right
authorIan Jackson <ian@liberator.relativity.greenend.org.uk>
Sat, 6 Nov 2010 18:59:01 +0000 (18:59 +0000)
committerIan Jackson <ian@liberator.relativity.greenend.org.uk>
Sat, 6 Nov 2010 18:59:01 +0000 (18:59 +0000)
layout/slopecalc

index cc1f7947114b4013830cc25487809ee0fd96e11b..40eb5436f93e35df58edf480f3d64d762a7d1cfe 100755 (executable)
@@ -171,7 +171,8 @@ sub parse_args () {
 
 sub lprint_interp ($$$$) {
     my ($l_more,$l,$y,$cc) = @_;
-    lprintf("   %4s        %7d  %8.2f  %s", "+$l_more", $l, $y, $cc);
+    lprintf("   %4s        %7d  %8.2f  %s",
+           "+$l_more", $l - $absoffset, $y, $cc);
 }
 
 sub dump_schedule ($) {