diff options
| author | chrislu <chris.lu@gmail.com> | 2025-08-15 01:01:07 -0700 |
|---|---|---|
| committer | chrislu <chris.lu@gmail.com> | 2025-08-15 10:35:33 -0700 |
| commit | 9843a10f2b493d2739d6a2621a13db3490b9a29a (patch) | |
| tree | 9bd07f01331b34e741a4ace5e3fa089a9284394f | |
| parent | d5ded63ce3fb93697b20fdae31818f3e5d0605a5 (diff) | |
| download | seaweedfs-9843a10f2b493d2739d6a2621a13db3490b9a29a.tar.xz seaweedfs-9843a10f2b493d2739d6a2621a13db3490b9a29a.zip | |
fix stop time
| -rw-r--r-- | weed/filer/filer_notify_read.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/filer/filer_notify_read.go b/weed/filer/filer_notify_read.go index d25412d0d..3e929452e 100644 --- a/weed/filer/filer_notify_read.go +++ b/weed/filer/filer_notify_read.go @@ -161,7 +161,7 @@ func NewLogFileEntryCollector(f *Filer, startPosition log_buffer.MessagePosition startHourMinute := fmt.Sprintf("%02d-%02d", startPosition.Hour(), startPosition.Minute()) var stopDate, stopHourMinute string if stopTsNs != 0 { - stopTime := time.Unix(0, stopTsNs+24*60*60*int64(time.Nanosecond)).UTC() + stopTime := time.Unix(0, stopTsNs+24*60*60*int64(time.Second)).UTC() stopDate = fmt.Sprintf("%04d-%02d-%02d", stopTime.Year(), stopTime.Month(), stopTime.Day()) stopHourMinute = fmt.Sprintf("%02d-%02d", stopTime.Hour(), stopTime.Minute()) } |
