1
0
mirror of https://github.com/maximebf/php-debugbar.git synced 2025-07-23 09:41:48 +02:00

Hide empty duration

This commit is contained in:
Barry vd. Heuvel
2025-02-01 16:35:11 +01:00
parent 2b9c176409
commit 1a4cc88586

View File

@@ -526,7 +526,7 @@ if (typeof(PhpDebugBar) == 'undefined') {
width: width + "%"
}));
m.append($('<span />').addClass(csscls('label'))
.text(measure.label + " (" + measure.duration_str +(measure.memory ? '/' + measure.memory_str: '') + ")"));
.text(measure.label + ( measure.duration ? " (" + measure.duration_str +(measure.memory ? '/' + measure.memory_str: '') + ")" : "")));
if (measure.collector) {
$('<span />').addClass(csscls('collector')).text(measure.collector).appendTo(m);