256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
|
# File 'lib/modules/output/style/excel_table_wps.rb', line 256
def generate_cpu_memory(device_info)
device_klass = device_info[:device_klass]
cmd_cpu = CmdSwitch.cpu(device_klass)
cmd_mem = CmdSwitch.memory(device_klass)
@worksheet.add_row do |row|
row.merge("d", "e")
row.merge("f", "g")
row << [
cmd_cpu, "路由状态",
"cpu 利用率(%)", device_klass.cpu_percent,
""
]
row.style("a", "BoldStyle")
end
@begin_row = @worksheet.current_row_id
@worksheet.add_row do |row|
row.merge("d", "e")
row.merge("f", "g")
row << [
cmd_mem, "路由状态",
"memory 利用率(%)", device_klass.memory_percent,
""
]
row.style("a", "BoldStyle")
end
end
|