Skip to content

Commit

Permalink
tapestat: Remove unused variable
Browse files Browse the repository at this point in the history
"curr" variable is unused in write_stats() function. So remove it.

Signed-off-by: Sebastien GODARD <[email protected]>
  • Loading branch information
sysstat committed Dec 5, 2015
1 parent 3def9b5 commit bf647c8
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions tapestat.c
Original file line number Diff line number Diff line change
Expand Up @@ -455,11 +455,10 @@ void tape_write_stats(struct calc_stats *tape, int i)
* Print everything now (stats and uptime).
*
* IN:
* @curr Index in array for current sample statistics.
* @rectime Current date and time.
***************************************************************************
*/
void write_stats(int curr, struct tm *rectime)
void write_stats(struct tm *rectime)
{
int i;
struct calc_stats tape;
Expand Down Expand Up @@ -530,7 +529,6 @@ void write_stats(int curr, struct tm *rectime)
void rw_tape_stat_loop(long int count, struct tm *rectime)
{
struct tape_stats *tmp;
int curr = 1;
int skip = 0;

/* Should we skip first report? */
Expand All @@ -555,7 +553,7 @@ void rw_tape_stat_loop(long int count, struct tm *rectime)
/* Check whether we should skip first report */
if (!skip) {
/* Print results */
write_stats(curr, rectime);
write_stats(rectime);

if (count > 0) {
count--;
Expand All @@ -569,7 +567,6 @@ void rw_tape_stat_loop(long int count, struct tm *rectime)
}

if (count) {
curr ^= 1;
pause();
}
}
Expand Down

0 comments on commit bf647c8

Please sign in to comment.