]> Cypherpunks.ru repositories - goredo.git/blobdiff - run.go
Latest go.cypherpunks.ru/tai64n
[goredo.git] / run.go
diff --git a/run.go b/run.go
index af71b3b8b3b4c4b08d39082e295d2fa48316ed62..2efd2d31a80e20917f0ee89a027da0f10354ddca 100644 (file)
--- a/run.go
+++ b/run.go
@@ -35,7 +35,7 @@ import (
        "time"
 
        "go.cypherpunks.ru/recfile"
-       "go.cypherpunks.ru/tai64n"
+       "go.cypherpunks.ru/tai64n/v2"
        "golang.org/x/sys/unix"
 )
 
@@ -464,9 +464,9 @@ func runScript(tgtOrig string, errs chan error, traced bool) error {
                                        continue
                                }
                                if fdStderr != nil {
-                                       tai64n.FromTime(time.Now(), ts)
+                                       ts.FromTime(time.Now())
                                        LogMutex.Lock()
-                                       fmt.Fprintf(fdStderr, "%s %s\n", ts.Encode(), line)
+                                       fmt.Fprintf(fdStderr, "%s %s\n", tai64n.Encode(ts[:]), line)
                                        LogMutex.Unlock()
                                }
                                if StderrSilent {