mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
Merge pull request #11118 from zhangjianweibj/re-fix-percent-bug
etcdserver: remove dup percentage sign in log
This commit is contained in:
commit
01a79d4a9d
@ -207,7 +207,7 @@ func monitorFileDescriptor(lg *zap.Logger, done <-chan struct{}) {
|
|||||||
}
|
}
|
||||||
if used >= limit/5*4 {
|
if used >= limit/5*4 {
|
||||||
if lg != nil {
|
if lg != nil {
|
||||||
lg.Warn("80%% of file descriptors are used", zap.Uint64("used", used), zap.Uint64("limit", limit))
|
lg.Warn("80% of file descriptors are used", zap.Uint64("used", used), zap.Uint64("limit", limit))
|
||||||
} else {
|
} else {
|
||||||
plog.Warningf("80%% of the file descriptor limit is used [used = %d, limit = %d]", used, limit)
|
plog.Warningf("80%% of the file descriptor limit is used [used = %d, limit = %d]", used, limit)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user