Merge pull request #11118 from zhangjianweibj/re-fix-percent-bug

etcdserver: remove dup percentage sign in log
This commit is contained in:
Gyuho Lee 2019-09-04 22:02:56 -07:00 committed by GitHub
commit 01a79d4a9d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -207,7 +207,7 @@ func monitorFileDescriptor(lg *zap.Logger, done <-chan struct{}) {
}
if used >= limit/5*4 {
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 {
plog.Warningf("80%% of the file descriptor limit is used [used = %d, limit = %d]", used, limit)
}