Skip to content

Commit

Permalink
Use gross time for scan timestamps
Browse files Browse the repository at this point in the history
  • Loading branch information
mattjala committed Apr 22, 2024
1 parent f6b3296 commit d5996f3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions hsds/async_lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@
from .util.arrayUtil import getNumElements, bytesToArray
from .util.dsetUtil import getHyperslabSelection, getFilterOps, getChunkDims, getFilters
from .util.dsetUtil import getDatasetLayoutClass, getDatasetLayout, getShapeDims
from .util.timeUtil import getNow
from .util.storUtil import getStorKeys, putStorJSONObj, getStorJSONObj
from .util.storUtil import deleteStorObj, getStorBytes, isStorObj
from . import hsds_logger as log
from . import config
import time

# List all keys under given root and optionally update info.json
# Note: only works with schema v2 domains!
Expand Down Expand Up @@ -382,7 +382,7 @@ async def scanRoot(app, rootid, update=False, bucket=None):
results["logical_bytes"] = 0
results["checksums"] = {} # map of objid to checksums
results["bucket"] = bucket
results["scan_start"] = getNow(app)
results["scan_start"] = time.time()

app["scanRoot_results"] = results
app["scanRoot_keyset"] = set()
Expand Down Expand Up @@ -437,7 +437,7 @@ async def scanRoot(app, rootid, update=False, bucket=None):
# free up memory used by the checksums
del results["checksums"]

results["scan_complete"] = getNow(app)
results["scan_complete"] = time.time()

if update:
# write .info object back to S3
Expand Down

0 comments on commit d5996f3

Please sign in to comment.