From 966a05a9848f20a740c5e695d182039ebfe7d2fd Mon Sep 17 00:00:00 2001 From: Alexander Monakov Date: Tue, 17 Feb 2009 22:04:38 -0700 Subject: [PATCH] Fix diskio_read/write patch sf.net id #2493084 (thanks Alexander). --- ChangeLog | 2 +- src/conky.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 0c9c65c6..0e9bc037 100644 --- a/ChangeLog +++ b/ChangeLog @@ -11,7 +11,7 @@ * add a space between number and the unit in human_readable() * fix number printing in human_readable() * network $upspeed and $downspeed now use human_readable() - + * Fix diskio_read/write patch sf.net id #2493084 (thanks Alexander) 2009-02-15 * Added out_to_x diff --git a/src/conky.c b/src/conky.c index 274fe365..f63baf75 100644 --- a/src/conky.c +++ b/src/conky.c @@ -4064,11 +4064,11 @@ static void generate_text_internal(char *p, int p_max_size, p, p_max_size); } OBJ(diskio_write) { - human_readable((obj->data.diskio->current / update_interval) * 1024LL, + human_readable((obj->data.diskio->current_read / update_interval) * 1024LL, p, p_max_size); } OBJ(diskio_read) { - human_readable((obj->data.diskio->current / update_interval) * 1024LL, + human_readable((obj->data.diskio->current_write / update_interval) * 1024LL, p, p_max_size); } OBJ(diskiograph) {