summaryrefslogtreecommitdiff
path: root/src/base/statistics.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/base/statistics.cc')
-rw-r--r--src/base/statistics.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/base/statistics.cc b/src/base/statistics.cc
index 630205a59..0b44a4ec7 100644
--- a/src/base/statistics.cc
+++ b/src/base/statistics.cc
@@ -387,6 +387,16 @@ Formula::operator+=(Temp r)
return *this;
}
+const Formula &
+Formula::operator/=(Temp r)
+{
+ assert (root);
+ root = NodePtr(new BinaryNode<std::divides<Result> >(root, r));
+
+ assert(size());
+ return *this;
+}
+
void
Formula::result(VResult &vec) const
{