Added mon_quorum panel to ceph-cluster dashboard

This commit is contained in:
Alexander Pivkin
2025-08-22 18:07:44 +03:00
parent 0635aaa5ae
commit 00347310c1
8 changed files with 103 additions and 8 deletions
+3
View File
@@ -0,0 +1,3 @@
module first
go 1.24.5
+25
View File
@@ -0,0 +1,25 @@
package main
import (
"bufio"
"fmt"
"log"
"os"
"strconv"
"strings"
)
func main() {
fmt.Println("Enter a grade")
reader := bufio.NewReader(os.Stdin)
input,err := reader.ReadString('\n')
if err != nil {
log.Fatal(err)
}
input = strings.TrimSpace(input)
grade,_ := strconv.Atoi(input)
if grade > 60 {
fmt.Println("Passes")
}
fmt.Println(input)
}