graphic card

This commit is contained in:
Cayo Puigdefabregas 2020-10-21 13:17:32 +02:00
parent e6401fff3c
commit 2f7c34af2e
1 changed files with 6 additions and 0 deletions

View File

@ -138,6 +138,9 @@ class DeviceRow(OrderedDict):
if ctype == d.DataStorage.t: if ctype == d.DataStorage.t:
self.get_datastorage(ctype, i, component) self.get_datastorage(ctype, i, component)
if ctype == d.GraphicCard.t:
self.get_graphicCard(ctype, i, component)
"""Particular fields for component GraphicCard.""" """Particular fields for component GraphicCard."""
if isinstance(component, d.GraphicCard): if isinstance(component, d.GraphicCard):
@ -248,6 +251,9 @@ class DeviceRow(OrderedDict):
self['Benchmark {} {} Read Speed (MB/s)'.format(ctype, i)] = benchmark.read_speed self['Benchmark {} {} Read Speed (MB/s)'.format(ctype, i)] = benchmark.read_speed
self['Benchmark {} {} Writing speed (MB/s)'.format(ctype, i)] = benchmark.write_speed self['Benchmark {} {} Writing speed (MB/s)'.format(ctype, i)] = benchmark.write_speed
def get_graphicCard(self, ctype, i, component):
self['{} {} Memory (MB)'.format(ctype, i)] = component.memory
class StockRow(OrderedDict): class StockRow(OrderedDict):
def __init__(self, device: d.Device) -> None: def __init__(self, device: d.Device) -> None: