You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by kp...@apache.org on 2022/04/02 19:51:06 UTC

[tvm] branch main updated: Fix a small timer bug. (#10875)

This is an automated email from the ASF dual-hosted git repository.

kparzysz pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tvm.git


The following commit(s) were added to refs/heads/main by this push:
     new daa0689  Fix a small timer bug. (#10875)
daa0689 is described below

commit daa068979a464bd96f6f48e244a8917c4b353503
Author: Jon Azose <10...@users.noreply.github.com>
AuthorDate: Sat Apr 2 12:50:02 2022 -0700

    Fix a small timer bug. (#10875)
---
 web/src/runtime.ts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/web/src/runtime.ts b/web/src/runtime.ts
index b0e71d9..3d47453 100644
--- a/web/src/runtime.ts
+++ b/web/src/runtime.ts
@@ -1069,7 +1069,7 @@ export class Instance implements Disposable {
         do {
           if (durationMs > 0.0) {
             setupNumber = Math.floor(
-              Math.max(minRepeatMs / (durationMs / nstep) + 1, nstep * 1.618)
+              Math.max(minRepeatMs / (durationMs / setupNumber) + 1, setupNumber * 1.618)
             );
           }
           const tstart: number = perf.now();