mirror of
https://github.com/xzeldon/htop.git
synced 2024-12-26 15:55:46 +00:00
LinuxProcess: Drop dead assignment
Modern compilers are very good at finding uninitialized paths, lets rely on them.
This commit is contained in:
parent
a40347e85b
commit
ff4ee2eafc
@ -650,7 +650,7 @@ static void LinuxProcess_writeField(const Process* this, RichString* str, Proces
|
||||
case IO_READ_RATE: Process_outputRate(str, buffer, n, lp->io_rate_read_bps, coloring); return;
|
||||
case IO_WRITE_RATE: Process_outputRate(str, buffer, n, lp->io_rate_write_bps, coloring); return;
|
||||
case IO_RATE: {
|
||||
double totalRate = NAN;
|
||||
double totalRate;
|
||||
if (!isnan(lp->io_rate_read_bps) && !isnan(lp->io_rate_write_bps))
|
||||
totalRate = lp->io_rate_read_bps + lp->io_rate_write_bps;
|
||||
else if (!isnan(lp->io_rate_read_bps))
|
||||
|
Loading…
Reference in New Issue
Block a user