Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 | 1x 216x 216x 216x 216x 216x 216x 1x 20x 1x 20x 1x 20x 1x 20x 1x 20x 1x 20x 1x | /** * Class with drive information. * * @author Cristiam Mercado */ export default class Drive { /** * Drive filesystem. */ private readonly _filesystem: string; /** * Blocks associated to disk. */ private readonly _blocks: number; /** * Used disk space. */ private readonly _used: number; /** * Available disk space. */ private readonly _available: number; /** * Disk capacity. */ private readonly _capacity: string; /** * Indicates the mount point of the disk. */ private readonly _mounted: string; /** * Constructor for Drive class. * * @param {string} filesystem Drive filesystem. * @param {number} blocks Blocks associated to disk. * @param {number} used Used disk space. * @param {number} available Available disk space. * @param {string} capacity Disk capacity. * @param {string} mounted Indicates the mount point of the disk. */ public constructor(filesystem: string, blocks: number, used: number, available: number, capacity: string, mounted: string) { this._filesystem = filesystem; this._blocks = blocks; this._used = used; this._available = available; this._capacity = capacity; this._mounted = mounted; } /** * Drive filesystem. * * @return Gets drive filesystem. */ get filesystem(): string { return this._filesystem; } /** * Blocks associated to disk. * * @return Gets blocks associated to disk. */ get blocks(): number { return this._blocks; } /** * Used disk space. * * @return Gets used disk space. */ get used(): number { return this._used; } /** * Available disk space. * * @return Gets available disk space. */ get available(): number { return this._available; } /** * Disk capacity. * * @return Gets disk capacity. */ get capacity(): string { return this._capacity; } /** * Indicates the mount point of the disk. * * @return Gets the mount point of the disk. */ get mounted(): string { return this._mounted; } } |