From 997a66791e13c8e983fcd01473d51a66cbb971b7 Mon Sep 17 00:00:00 2001 From: David Shah Date: Wed, 20 Mar 2019 16:05:43 +0000 Subject: json: Fix inputs directly driving inouts Signed-off-by: David Shah --- common/placer1.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'common') diff --git a/common/placer1.cc b/common/placer1.cc index cec37847..5b72602f 100644 --- a/common/placer1.cc +++ b/common/placer1.cc @@ -230,7 +230,7 @@ class SAPlacer double upper = 0.6, lower = 0.4; - if (curr_metric < 0.95 * avg_metric) { + if (curr_metric < 0.95 * avg_metric && curr_metric > 0) { avg_metric = 0.8 * avg_metric + 0.2 * curr_metric; } else { if (Raccept >= 0.8) { -- cgit v1.2.3