[PVFS2-CVS] commit by rbross in pvfs2/src/apps/karma: prep.c
CVS commit program
cvs at parl.clemson.edu
Thu Mar 25 14:10:18 EST 2004
Update of /projects/cvsroot/pvfs2/src/apps/karma
In directory parlweb:/tmp/cvs-serv15825/src/apps/karma
Modified Files:
prep.c
Log Message:
Fixed bug in total handle calculation on status screen.
Index: prep.c
===================================================================
RCS file: /projects/cvsroot/pvfs2/src/apps/karma/prep.c,v
diff -p -u -r1.6 -r1.7
--- prep.c 11 Feb 2004 16:04:59 -0000 1.6
+++ prep.c 25 Mar 2004 19:10:18 -0000 1.7
@@ -15,7 +15,7 @@ void gui_status_data_prepare(struct PVFS
struct gui_status_graph_data **out_graph_data)
{
int i, j, done = 0;
- int total_free_handles = 0;
+ int64_t total_free_handles = 0;
float total_free_space = 0.0;
float divisor;
char *units;
@@ -148,13 +148,12 @@ void gui_status_data_prepare(struct PVFS
else bar = BAR_GREEN;
graph_data[GUI_STATUS_META].bar_color[j] = bar;
- total_free_handles += (int) (svr_stat[j].handles_available_count /
- (int64_t) divisor);
+ total_free_handles += svr_stat[j].handles_available_count;
}
snprintf(graph_data[GUI_STATUS_META].footer,
64,
"Total Free Handles: %d %s",
- total_free_handles,
+ (int) (total_free_handles / (int64_t) divisor),
units);
/* process data handle information */
More information about the PVFS2-CVS
mailing list