From 2980f1a2838f773cc1e5c48a2255a7eae528094b Mon Sep 17 00:00:00 2001 From: YouROK <8yourok8@mail.ru> Date: Fri, 25 Dec 2020 11:55:16 +0300 Subject: [PATCH] change file id from 0 --- src/server/torr/torrent.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/torr/torrent.go b/src/server/torr/torrent.go index 6cb4f81..5175269 100644 --- a/src/server/torr/torrent.go +++ b/src/server/torr/torrent.go @@ -373,7 +373,7 @@ func (t *Torrent) Status() *state.TorrentStatus { }) for i, f := range files { st.FileStats = append(st.FileStats, &state.TorrentFileStat{ - Id: i + 1, + Id: i, Path: f.Path(), Length: f.Length(), })