summaryrefslogtreecommitdiff
path: root/misc.cc
diff options
context:
space:
mode:
Diffstat (limited to 'misc.cc')
-rw-r--r--misc.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/misc.cc b/misc.cc
index effab35896..2be0f81dd6 100644
--- a/misc.cc
+++ b/misc.cc
@@ -26,10 +26,10 @@ const double WHOLE_SPACE = 5.0; // should be settable from input
Real
-duration_to_idealspace(Mtime d)
+duration_to_idealspace(Mtime d, Real w)
{
// see Roelofs, p. 57
- return WHOLE_SPACE * pow(ENGRAVERS_SPACE, log2(d));
+ return w * pow(ENGRAVERS_SPACE, log2(d));
}