mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-11-15 17:47:09 +00:00
s/substract/subtract/
This commit is contained in:
parent
ba06e0acad
commit
1dc3870c8a
@ -559,7 +559,7 @@
|
|||||||
<option>no_buffers</option>
|
<option>no_buffers</option>
|
||||||
</command>
|
</command>
|
||||||
</term>
|
</term>
|
||||||
<listitem>Substract (file system) buffers from used memory?
|
<listitem>Subtract (file system) buffers from used memory?
|
||||||
|
|
||||||
<para /></listitem>
|
<para /></listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
@ -214,7 +214,7 @@ void update_diskio_values(struct diskio_stat *ds,
|
|||||||
ds->last_read = reads;
|
ds->last_read = reads;
|
||||||
ds->last_write = writes;
|
ds->last_write = writes;
|
||||||
}
|
}
|
||||||
/* since the values in /proc/diskstats are absolute, we have to substract
|
/* since the values in /proc/diskstats are absolute, we have to subtract
|
||||||
* our last reading. The numbers stand for "sectors read", and we therefore
|
* our last reading. The numbers stand for "sectors read", and we therefore
|
||||||
* have to divide by two to get KB */
|
* have to divide by two to get KB */
|
||||||
ds->sample_read[0] = (reads - ds->last_read) / 2;
|
ds->sample_read[0] = (reads - ds->last_read) / 2;
|
||||||
|
Loading…
Reference in New Issue
Block a user