From ee4ecb978372bb7015b52b7b466c30b451007b72 Mon Sep 17 00:00:00 2001 From: Dennis Luxen Date: Wed, 9 Apr 2014 23:10:58 -0400 Subject: [PATCH] fix inverted logic --- datastore.cpp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/datastore.cpp b/datastore.cpp index 8eefc0fba..8d3dccd8d 100644 --- a/datastore.cpp +++ b/datastore.cpp @@ -200,13 +200,15 @@ int main( const int argc, const char * argv[] ) { UUID uuid_loaded, uuid_orig; hsgr_input_stream.read((char *)&uuid_loaded, sizeof(UUID)); - if( !uuid_loaded.TestGraphUtil(uuid_orig) ) { - SimpleLogger().Write(logWARNING) << - ".hsgr was prepared with different build. " - "Reprocess to get rid of this warning."; - } else { + if (uuid_loaded.TestGraphUtil(uuid_orig)) + { SimpleLogger().Write(logDEBUG) << "UUID checked out ok"; } + else + { + SimpleLogger().Write(logWARNING) << ".hsgr was prepared with different build. " + "Reprocess to get rid of this warning."; + } // load checksum unsigned checksum = 0;