@@ -54,7 +54,7 @@ integer function output_info(app) result(rc)
5454
5555 character (len= :), allocatable :: mode_name
5656 integer :: app_id, mode, user_version
57- integer (kind= i8) :: n, sz
57+ integer (kind= i8) :: n, nbytes
5858 logical :: has_db
5959 type (db_type) :: db
6060 type (uname_type) :: uname
@@ -63,7 +63,6 @@ integer function output_info(app) result(rc)
6363 has_db = (len_trim (app% database) > 0 )
6464
6565 if (has_db) then
66- sz = dm_file_size(app% database)
6766 rc = dm_db_open(db, app% database, read_only= .true. )
6867 if (dm_is_error(rc)) call dm_error_out(rc, ' failed to open database ' // app% database, fatal= .true. )
6968 end if
@@ -77,13 +76,14 @@ integer function output_info(app) result(rc)
7776 rc = dm_db_get_application_id(db, app_id)
7877 rc = dm_db_get_user_version(db, user_version)
7978 rc = dm_db_get_journal_mode(db, mode, mode_name)
79+ rc = dm_db_size(db, nbytes)
8080
8181 print ' ("db.application_id: ", z0)' , app_id
8282 print ' ("db.journal_mode: ", a)' , mode_name
8383 print ' ("db.library: ", a)' , dm_db_version(.true. )
8484 print ' ("db.path: ", a)' , trim (app% database)
8585 print ' ("db.schema_version: ", i0)' , user_version
86- print ' ("db.size: ", i0)' , sz
86+ print ' ("db.size: ", i0)' , nbytes
8787
8888 if (dm_db_has_table(db, SQL_TABLE_BEATS)) then
8989 rc = dm_db_count_beats(db, n)
0 commit comments