From 4d06a2c710ac2be37b08179402635c8859744974 Mon Sep 17 00:00:00 2001 From: Zhi Wang Date: Mon, 17 Jan 2022 06:55:58 -0500 Subject: [PATCH] WIP --- main.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index ebfa964..38fd54a 100644 --- a/main.go +++ b/main.go @@ -105,7 +105,7 @@ func fillIndex(c *gin.Context) { if !strings.HasSuffix(fname, ".rec") { continue } - fsize := finfo.Size() + fsize := finfo.Size() / 1024 duration := getDuration(fname) records = append(records, @@ -168,6 +168,7 @@ func main() { "title": "interactive terminal", "path": "/ws_new/" + id, "id": id, + "logo": "keyboard", }) }) @@ -182,6 +183,8 @@ func main() { c.HTML(http.StatusOK, "term.html", gin.H{ "title": "viewer terminal", "path": "/ws_view/" + id, + "id": id, + "logo": "view", }) })