Skip to content

Optimise OS age detection #513

@CarterLi

Description

@CarterLi

This is both simpler and faster, and it even support Windows.

{
    "type": "disk",
    "folders": "/",
    "key": "OS Age",
    "format": "{days} days"
}

"text": "birth_install=$(stat -c %W /); current=$(date +%s); time_progression=$((current - birth_install)); days_difference=$((time_progression / 86400)); echo $days_difference days"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions