Skip to content

Commit

Permalink
rgw: improve format of X-Timestamp on Swift objects.
Browse files Browse the repository at this point in the history
Backport: hammer
Signed-off-by: Radoslaw Zarzynski <[email protected]>
  • Loading branch information
rzarzynski committed Mar 5, 2015
1 parent b7e9bf6 commit e54fef9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rgw/rgw_rest_swift.cc
Original file line number Diff line number Diff line change
Expand Up @@ -619,7 +619,7 @@ int RGWGetObj_ObjStore_SWIFT::send_response_data(bufferlist& bl, off_t bl_ofs, o

dump_content_length(s, total_len);
dump_last_modified(s, lastmod);
s->cio->print("X-Timestamp: %lld\r\n", (long long)lastmod);
s->cio->print("X-Timestamp: %lld.00000\r\n", (long long)lastmod);

if (!ret) {
map<string, bufferlist>::iterator iter = attrs.find(RGW_ATTR_ETAG);
Expand Down

0 comments on commit e54fef9

Please sign in to comment.