f:Hide(); -- hide frame to have an initial frame:OnShow call
f:SetWidth(width);
f:SetHeight(height);
+ f.barwidth = width - 2; -- 1px padding on both sides
f:SetAttribute("unit", unit);
f.unit = unit;
f.displayed = unit;
-- set up periodic updates
updaters[f] = function()
if f.updating then
- CTimerAfter(0.25, updaters[f]);
+ CTimerAfter(0.1, updaters[f]);
return update(f)
end
end