Skip to content

Commit

Permalink
Merge pull request #287 from fioprotocol/release/3.0.x
Browse files Browse the repository at this point in the history
Release/3.0.x -> master ( Bahamas FIO Release v3.0.1 )
  • Loading branch information
ericbutz authored Jun 3, 2021
2 parents 0b71d6b + 53d2e51 commit a5c0cf9
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions plugins/chain_plugin/chain_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2520,6 +2520,7 @@ if( options.count(name) ) { \

std::string nam;
uint64_t namexpiration;
uint64_t rem_bundle;
time_t temptime;
struct tm *timeinfo;
char buffer[80];
Expand All @@ -2540,12 +2541,14 @@ if( options.count(name) ) { \
nam = (string) table_rows_result.rows[pos]["name"].as_string();
if (nam.find('@') != std::string::npos) {
namexpiration = table_rows_result.rows[pos]["expiration"].as_uint64();
rem_bundle = (uint64_t) table_rows_result.rows[pos]["bundleeligiblecountdown"].as_uint64();



temptime = namexpiration;
timeinfo = gmtime(&temptime);
strftime(buffer, 80, "%Y-%m-%dT%T", timeinfo);

fioaddress_record fa{nam, buffer};
fioaddress_record fa{nam, buffer,rem_bundle};
result.fio_addresses.push_back(fa);
}
result.more = (table_rows_result.rows.size()-pos)-1;
Expand Down

0 comments on commit a5c0cf9

Please sign in to comment.