Yusuke Komatsu 9 роки тому
батько
коміт
741a209b27
2 змінених файлів з 2 додано та 2 видалено
  1. 1 1
      bytes/bytes.go
  2. 1 1
      log/log.go

+ 1 - 1
bytes/bytes.go

@@ -35,7 +35,7 @@ func New() *Bytes {
 // For example, 31323 bytes will return 30.59KB.
 func (*Bytes) Format(b int64) string {
 	multiple := ""
-	value := float32(b)
+	value := float64(b)
 
 	switch {
 	case b < KB:

+ 1 - 1
log/log.go

@@ -36,7 +36,7 @@ type (
 )
 
 const (
-	DEBUG = iota
+	DEBUG uint8 = iota
 	INFO
 	WARN
 	ERROR