Skip to content

Commit

Permalink
Change log (IceWhaleTech#955)
Browse files Browse the repository at this point in the history
  • Loading branch information
LinkLeong authored Mar 15, 2023
1 parent 60e81bc commit eb483a4
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion route/v1/system.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import (
model2 "github.com/IceWhaleTech/CasaOS/service/model"
"github.com/IceWhaleTech/CasaOS/types"
"github.com/gin-gonic/gin"
"golang.org/x/tools/go/analysis/passes/ifaceassert"
)

// @Summary check version
Expand Down Expand Up @@ -177,7 +178,14 @@ func PostKillCasaOS(c *gin.Context) {
func GetSystemHardwareInfo(c *gin.Context) {
data := make(map[string]string, 1)
data["drive_model"] = service.MyService.System().GetDeviceTree()
data["arch"] = runtime.GOARCH
if runtime.GOARCH == "arm" {
data["arch"]= "arm-7"
}else{
data["arch"]= runtime.GOARCH
}

if cpu := service.MyService.System().GetCpuInfo(); len(cpu) > 0 {

c.JSON(common_err.SUCCESS,
model.Result{
Success: common_err.SUCCESS,
Expand Down

0 comments on commit eb483a4

Please sign in to comment.