ramwatch: print diffs as integers always, fixes spurious - display as well as what I assume is a combination of unwanted and illogical behaviour attempting to display it as the same format as the value
This commit is contained in:
parent
7318c6a9f6
commit
f536002053
|
@ -215,7 +215,7 @@ namespace BizHawk.Client.Common
|
||||||
diff = "-";
|
diff = "-";
|
||||||
}
|
}
|
||||||
|
|
||||||
return $"{diff}{FormatValue((byte)Math.Abs(diffVal))}";
|
return $"{diff}{((byte)Math.Abs(diffVal))}";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -231,7 +231,7 @@ namespace BizHawk.Client.Common
|
||||||
/// Get a string representation of difference
|
/// Get a string representation of difference
|
||||||
/// between current value and the previous one
|
/// between current value and the previous one
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public override string Diff => FormatValue(_previous - _value);
|
public override string Diff => (_previous - _value).ToString();
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Get the maximum possible value
|
/// Get the maximum possible value
|
||||||
|
|
|
@ -229,7 +229,7 @@ namespace BizHawk.Client.Common
|
||||||
diff = "-";
|
diff = "-";
|
||||||
}
|
}
|
||||||
|
|
||||||
return $"{diff}{FormatValue((ushort)Math.Abs(diffVal))}";
|
return $"{diff}{((ushort)Math.Abs(diffVal))}";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue