mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-11-17 10:35:10 +00:00
s/substract/subtract/
This commit is contained in:
parent
6382d8cd34
commit
2ad1809f87
@ -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>
|
||||||
|
@ -186,7 +186,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