summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f9238bf)
raw | patch | inline | side by side (parent: f9238bf)
author | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Tue, 29 Sep 2009 13:51:07 +0000 (15:51 +0200) | ||
committer | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Tue, 29 Sep 2009 13:51:07 +0000 (15:51 +0200) |
src/netapp.c | patch | blob | history |
diff --git a/src/netapp.c b/src/netapp.c
index 83cfe454ff16410288ad63b9832d957d02e85457..57fb59de5c5ef0be861729bcc24c400ca0d818ed 100644 (file)
--- a/src/netapp.c
+++ b/src/netapp.c
na_elem_t *sis;
const char *sis_state;
uint64_t sis_saved_reported;
- uint64_t sis_saved;
volume_name = na_child_get_string (elem_volume, "name");
if (volume_name == NULL)
/* size-saved is actually a 32 bit number, so ... time for some guesswork. */
if ((sis_saved_reported >> 32) != 0) {
/* In case they ever fix this bug. */
- sis_saved = sis_saved_reported;
+ v->sis_saved = sis_saved_reported;
} else { /* really hacky work-around code. {{{ */
uint64_t sis_saved_percent;
uint64_t sis_saved_guess;
if (sis_saved_guess < guess2) {
if ((sis_saved_guess - guess1) < (guess2 - sis_saved_guess))
- sis_saved = guess1;
+ v->sis_saved = guess1;
else
- sis_saved = guess2;
+ v->sis_saved = guess2;
} else {
if ((sis_saved_guess - guess2) < (guess3 - sis_saved_guess))
- sis_saved = guess2;
+ v->sis_saved = guess2;
else
- sis_saved = guess3;
+ v->sis_saved = guess3;
}
} /* }}} end of 32-bit workaround */
} /* for (elem_volume) */