Browse Source

Fixed theme bug in diskprop

Toby Chui 1 year ago
parent
commit
975c75d660
3 changed files with 1 additions and 7 deletions
  1. 0 3
      file_system.go
  2. 0 3
      mod/filesystem/static.go
  3. 1 1
      web/SystemAO/disk/diskprop.html

+ 0 - 3
file_system.go

@@ -5,7 +5,6 @@ import (
 	"encoding/hex"
 	"encoding/json"
 	"errors"
-	"fmt"
 	"io"
 	"io/fs"
 	"log"
@@ -2467,8 +2466,6 @@ func system_fs_getFileProperties(w http.ResponseWriter, r *http.Request) {
 				if err == nil {
 					usefallback = false
 					filesize = nativeSize
-				} else {
-					fmt.Println(err.Error())
 				}
 			}
 

+ 0 - 3
mod/filesystem/static.go

@@ -287,7 +287,6 @@ func GetDirectorySizeNative(filename string) (int64, error) {
 	//du command exists
 	//use native syscall to get disk size
 	cmd := exec.Command("du", "-sb", abspath)
-	fmt.Println("du", "-sb", abspath)
 	out, err := cmd.CombinedOutput()
 	if err != nil {
 		return 0, err
@@ -304,14 +303,12 @@ func GetDirectorySizeNative(filename string) (int64, error) {
 
 	chunks := strings.Split(tmp, " ")
 	if len(chunks) <= 1 {
-		fmt.Println(chunks)
 		return 0, errors.New("malformed output")
 	}
 
 	//The first chunk should be the size in bytes
 	size, err := strconv.Atoi(chunks[0])
 	if err != nil {
-		fmt.Println(err.Error())
 		return 0, errors.New("malformed output")
 	}
 

+ 1 - 1
web/SystemAO/disk/diskprop.html

@@ -80,7 +80,7 @@
         }
     </style>
 </head>
-<body>
+<body class="whiteTheme">
     <br>
     <div class="ui container">
         <h3 class="ui header">