1
0
mirror of https://github.com/maximebf/php-debugbar.git synced 2025-01-17 05:18:32 +01:00

Merge pull request #17 from nakonechny/master

fixes #16
This commit is contained in:
Maxime Bouroumeau-Fuseau 2013-09-14 11:45:43 -07:00
commit c54fb868b6

View File

@ -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);
}
}