[Pcsclite-git-commit] [PCSC] 01/01: pcsc-spy: fix display of execution time

Ludovic Rousseau rousseau at moszumanska.debian.org
Wed Oct 19 16:40:35 UTC 2016


This is an automated email from the git hooks/post-receive script.

rousseau pushed a commit to branch master
in repository PCSC.

commit 45dd695d05742b039384951e130570aed289d7ca
Author: Ludovic Rousseau <ludovic.rousseau at free.fr>
Date:   Wed Oct 19 18:38:18 2016 +0200

    pcsc-spy: fix display of execution time
    
    The execution time is displayed in seconds and micro-seconds.
    1 micro-second is 10E-6 second, not 10E-9.
---
 src/spy/pcsc-spy | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/spy/pcsc-spy b/src/spy/pcsc-spy
index 4321325..a44e0cb 100755
--- a/src/spy/pcsc-spy
+++ b/src/spy/pcsc-spy
@@ -93,7 +93,7 @@ class PCSCspy(object):
         if self.diffable:
             time = " [??.??]"
         else:
-            time = " [%d.%09d]" % (delta_sec, delta_usec)
+            time = " [%d.%06d]" % (delta_sec, delta_usec)
         self.execution_time = delta_sec + delta_usec / 1000000.
 
         rvs = {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pcsclite/PCSC.git



More information about the Pcsclite-cvs-commit mailing list