mps

morphux package server
Log | Files | Refs | Submodules | README | LICENSE | git clone https://git.ne02ptzero.me/git/mps

commit 61a75de1506e6580afc33531bc4a478fc22ba94f
parent 635261768f9be613a171cb46a2850c66fa707cc1
Author: Ne02ptzero <louis@ne02ptzero.me>
Date:   Mon, 27 Mar 2017 16:53:15 +0200

Fix(database.go): Fix PkgtoRespPkg:

Forgotten hard coded values...

Diffstat:
Mdatabase.go | 6+++---
Amps | 0
2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/database.go b/database.go @@ -71,9 +71,9 @@ func PkgtoRespPkg(pkg Package) (*response.RespPkg, error) { ret := new(response.RespPkg) ret.ID = pkg.ID - ret.CompTime = float32(15) - ret.InstSize = float32(14) - ret.ArchSize = float32(16) + ret.CompTime = float32(pkg.SBU) + ret.InstSize = float32(pkg.InstalledSize) + ret.ArchSize = float32(pkg.ArchiveSize) ret.State = pkg.State ret.NameLen = uint16(len(pkg.Name)) ret.CategoryLen = uint16(len(pkg.Category)) diff --git a/mps b/mps Binary files differ.