mirror of
https://github.com/maximebf/php-debugbar.git
synced 2025-01-17 05:18:32 +01:00
fixes #16
This commit is contained in:
parent
161d31a7e2
commit
fe8b415f2d
@ -313,11 +313,11 @@ if (typeof(PhpDebugBar) == 'undefined') {
|
||||
if (data.measures) {
|
||||
for (var i = 0; i < data.measures.length; i++) {
|
||||
var li = $('<li class="measure" />');
|
||||
li.append($('<span class="label" />').text(data.measures[i].label + " (" + data.measures[i].duration_str + ")"));
|
||||
li.append($('<span class="value" />').css({
|
||||
left: Math.round(data.measures[i].relative_start * 100 / data.duration) + "%",
|
||||
width: Math.round(data.measures[i].duration * 100 / data.duration) + "%"
|
||||
}));
|
||||
li.append($('<span class="label" />').text(data.measures[i].label + " (" + data.measures[i].duration_str + ")"));
|
||||
this.$el.append(li);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user