mirror of
https://github.com/libp2p/go-libp2p-resource-manager.git
synced 2025-03-10 17:20:39 +08:00
Use bytes rather than decbytes (power of 2)
This commit is contained in:
parent
d34b9cba64
commit
6d5898aa99
@ -1224,7 +1224,7 @@
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"unit": "decbytes"
|
"unit": "bytes"
|
||||||
},
|
},
|
||||||
"overrides": []
|
"overrides": []
|
||||||
},
|
},
|
||||||
@ -1311,7 +1311,7 @@
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"unit": "decbytes"
|
"unit": "bytes"
|
||||||
},
|
},
|
||||||
"overrides": []
|
"overrides": []
|
||||||
},
|
},
|
||||||
@ -1398,7 +1398,7 @@
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"unit": "decbytes"
|
"unit": "bytes"
|
||||||
},
|
},
|
||||||
"overrides": []
|
"overrides": []
|
||||||
},
|
},
|
||||||
@ -1485,7 +1485,7 @@
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"unit": "decbytes"
|
"unit": "bytes"
|
||||||
},
|
},
|
||||||
"overrides": [
|
"overrides": [
|
||||||
{
|
{
|
||||||
|
@ -329,9 +329,6 @@ func (r StatsTraceReporter) ConsumeEvent(evt rcmgr.TraceEvt) {
|
|||||||
|
|
||||||
tags := []tag.Mutator{tag.Upsert(Scope, scope), tag.Upsert(Resource, resource)}
|
tags := []tag.Mutator{tag.Upsert(Scope, scope), tag.Upsert(Resource, resource)}
|
||||||
|
|
||||||
// TODO fix the graph in the dashboard for blocked resources.
|
|
||||||
// TODO change bytes to iec
|
|
||||||
|
|
||||||
if evt.DeltaIn != 0 {
|
if evt.DeltaIn != 0 {
|
||||||
stats.RecordWithTags(ctx, tags, blockedResources.M(int64(1)))
|
stats.RecordWithTags(ctx, tags, blockedResources.M(int64(1)))
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user