mirror of
https://github.com/cryptonote-social/csminer.git
synced 2024-09-11 05:35:23 +03:00
prettier chat messages
This commit is contained in:
parent
2f466b1544
commit
2be45a76a5
3
miner.go
3
miner.go
@ -5,6 +5,7 @@ package csminer
|
|||||||
import (
|
import (
|
||||||
"bufio"
|
"bufio"
|
||||||
"errors"
|
"errors"
|
||||||
|
"fmt"
|
||||||
"os"
|
"os"
|
||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
@ -258,7 +259,7 @@ func printStatsPeriodically() {
|
|||||||
|
|
||||||
func printChat(unm string, ts int64, msg string) {
|
func printChat(unm string, ts int64, msg string) {
|
||||||
date := time.Unix(ts, 0).Format(time.RFC1123)
|
date := time.Unix(ts, 0).Format(time.RFC1123)
|
||||||
crylog.Info("\n\n[", unm, "] (", date, ")\n", msg, "\n")
|
fmt.Printf("\n[ %s ] (%s):\n%s\n\n", unm, date, msg)
|
||||||
}
|
}
|
||||||
|
|
||||||
func monitorMachineState(ch chan MachineState) {
|
func monitorMachineState(ch chan MachineState) {
|
||||||
|
Loading…
Reference in New Issue
Block a user