Skip to content

Commit

Permalink
LinuxProcess: Drop dead assignment
Browse files Browse the repository at this point in the history
Modern compilers are very good at finding uninitialized paths, lets rely
on them.
  • Loading branch information
cgzones authored and BenBE committed Mar 2, 2021
1 parent a40347e commit ff4ee2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion linux/LinuxProcess.c
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit ff4ee2e

Please sign in to comment.