mirror of
https://github.com/xjasonlyu/tun2socks.git
synced 2025-10-17 14:22:25 +08:00
add commas
This commit is contained in:
@@ -20,15 +20,15 @@ func uptime() string {
|
||||
var y, m, d, h string
|
||||
|
||||
if year != 0 {
|
||||
y = fmt.Sprintf("%dY", year)
|
||||
y = fmt.Sprintf("%dY,", year)
|
||||
}
|
||||
|
||||
if month != 0 {
|
||||
m = fmt.Sprintf("%dM", month)
|
||||
m = fmt.Sprintf("%dM,", month)
|
||||
}
|
||||
|
||||
if day != 0 {
|
||||
d = fmt.Sprintf("%dd", day)
|
||||
d = fmt.Sprintf("%dd,", day)
|
||||
}
|
||||
|
||||
h = fmt.Sprintf("%dh%dm%ds", hour, min, sec)
|
||||
|
Reference in New Issue
Block a user