Change ulong to long in processor's transistors as database contains signed value.

This commit is contained in:
2018-04-22 03:38:15 +01:00
parent cff905283a
commit 886ec34aaf
3 changed files with 93 additions and 6 deletions

View File

@@ -390,7 +390,7 @@ namespace Cicm.Database
Process = dataRow["process"] == DBNull.Value ? null : (string)dataRow["process"],
ProcessNm = dataRow["process_nm"] == DBNull.Value ? 0 : (float)dataRow["process_nm"],
DieSize = dataRow["die_size"] == DBNull.Value ? 0 : (float)dataRow["die_size"],
Transistors = dataRow["transistors"] == DBNull.Value ? 0 : (ulong)dataRow["transistors"],
Transistors = dataRow["transistors"] == DBNull.Value ? 0 : (long)dataRow["transistors"],
AddressBus = dataRow["addr_bus"] == DBNull.Value ? 0 : (int)dataRow["addr_bus"],
DataBus = dataRow["data_bus"] == DBNull.Value ? 0 : (int)dataRow["data_bus"],
Simd = dataRow["SIMD_registers"] == DBNull.Value ? 0 : (int)dataRow["SIMD_registers"],

View File

@@ -91,6 +91,6 @@ namespace Cicm.Database.Schemas
/// <summary>How many simultaneos threads can run on each processor core</summary>
public int ThreadsPerCore;
/// <summary>How many transistors in package</summary>
public ulong Transistors;
public long Transistors;
}
}