|
@@ -5,12 +5,12 @@ package hardwareinfo
|
|
|
|
|
|
import (
|
|
|
"encoding/json"
|
|
|
+ "imuslab.com/arozos/mod/utils"
|
|
|
"log"
|
|
|
"net/http"
|
|
|
"os/exec"
|
|
|
"strconv"
|
|
|
"strings"
|
|
|
- "imuslab.com/arozos/mod/utils"
|
|
|
)
|
|
|
|
|
|
/*
|
|
@@ -209,7 +209,7 @@ func GetUSB(w http.ResponseWriter, r *http.Request) {
|
|
|
if err != nil {
|
|
|
log.Println(err)
|
|
|
}
|
|
|
- sendTextResponse(w, string(jsonData))
|
|
|
+ utils.SendTextResponse(w, string(jsonData))
|
|
|
}
|
|
|
|
|
|
// GetRamInfo(w ResponseWriter, r *HttpRequest) -> nil
|
|
@@ -230,5 +230,5 @@ func GetRamInfo(w http.ResponseWriter, r *http.Request) {
|
|
|
if err != nil {
|
|
|
log.Println(err)
|
|
|
}
|
|
|
- sendTextResponse(w, string(jsonData))
|
|
|
+ utils.SendTextResponse(w, string(jsonData))
|
|
|
}
|