Hi Stephen,
you should be able to change the E1 to use the same STP port costs as the B5 with the
set spantree legacypathcost disable command. The E1 uses the older numbers by default, the B5 uses the current values. You can check this setting with
show spantree legacypathcostYou can set the port cost individually, but I do not think that is a maintainable approach.
set spantree portcost PORTSTRING COST
Spanning tree needs to re-converge after this change, thus you should consider scheduling a maintenance window.
HTH,
Erik